diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-13 05:01:12 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-13 05:01:12 +0000 |
commit | 80792d4fb156e8c9a06760361bbb66b5a7c1db59 (patch) | |
tree | 4caaa4dddc62828ed8adc67282e4133bb5c42fae /core/tests/Var_Test.php | |
parent | 7b7bf37e673d184556c114d6083b2d7699ab00d3 (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.php | 7 |
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 |