summaryrefslogtreecommitdiff
path: root/core/tests
diff options
context:
space:
mode:
Diffstat (limited to 'core/tests')
-rw-r--r--core/tests/Theme_Test.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/core/tests/Theme_Test.php b/core/tests/Theme_Test.php
index f73a98eb..8852a6a1 100644
--- a/core/tests/Theme_Test.php
+++ b/core/tests/Theme_Test.php
@@ -20,15 +20,22 @@
class Theme_Test extends Unit_Test_Case {
public function url_test() {
- $theme = new Theme("fake_theme");
+ $theme = new Theme("fake_theme", new View());
$this->assert_equal("http://./themes/fake_theme/file", $theme->url("file"));
}
public function display_test() {
- $theme = new Theme("fake_theme");
+ $theme = new Theme("fake_theme", new View());
$view = $theme->display("test_page", "Theme_Test_Mock_View");
$this->assert_equal("test_page", $view->page_name);
}
+
+ public function item_test() {
+ $v = new View();
+ $v->item = "fake_item";
+ $theme = new Theme("fake_theme", $v);
+ $this->assert_equal("fake_item", $theme->item());
+ }
}
class Theme_Test_Mock_View {