From b82332192a7420cce045612014ad6f54b02974c3 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 5 Nov 2008 05:20:20 +0000 Subject: The carousel block is now off into its own module. The sidebar.html.php file loops over $theme->blocks() which in turn calls carousel::block() which uses the Block object to create a standard block UI. Hooray! --- core/tests/Theme_Test.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'core/tests/Theme_Test.php') 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 { -- cgit v1.2.3