summaryrefslogtreecommitdiff
path: root/core/tests/Var_Test.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-12-13 05:01:12 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-12-13 05:01:12 +0000
commit80792d4fb156e8c9a06760361bbb66b5a7c1db59 (patch)
tree4caaa4dddc62828ed8adc67282e4133bb5c42fae /core/tests/Var_Test.php
parent7b7bf37e673d184556c114d6083b2d7699ab00d3 (diff)
Set the resize and thumbnail maximum dimension into the module vars table
Diffstat (limited to 'core/tests/Var_Test.php')
-rw-r--r--core/tests/Var_Test.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/tests/Var_Test.php b/core/tests/Var_Test.php
index bd4e360b..272a39fa 100644
--- a/core/tests/Var_Test.php
+++ b/core/tests/Var_Test.php
@@ -28,7 +28,10 @@ class Var_Test extends Unit_Test_Case {
module::set_var("core", "Parameter2", "new parameter");
$core = module::get("core");
- $expected = array("Parameter" => "updated value", "Parameter2" => "new parameter");
- $this->assert_equal($expected, $core->vars->select_list("name", "value"));
+ $params = $core->vars->select_list("name", "value");
+ $this->assert_false(empty($params["Parameter"]));
+ $this->assert_equal("updated value", $params["Parameter"]);
+ $this->assert_false(empty($params["Parameter2"]));
+ $this->assert_equal("new parameter", $params["Parameter2"]);
}
} \ No newline at end of file