diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-05 05:20:20 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-05 05:20:20 +0000 |
commit | b82332192a7420cce045612014ad6f54b02974c3 (patch) | |
tree | 7fae26a41040c0f7af6caddbfacb8c8db6250502 /core/tests | |
parent | f7560a7e8b15abdd549e4c59bbb39c6416844d9e (diff) |
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!
Diffstat (limited to 'core/tests')
-rw-r--r-- | core/tests/Theme_Test.php | 11 |
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 { |