From bac4ff2046a9413ad53caca47842b63d3e5a5385 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Thu, 27 Nov 2008 16:19:07 +0000 Subject: 1) Create a Theme_View class that combines the functionality of the Theme class with the View class. 2) Only define the form.html.php::DrawForm method once if there are multiple forms on the page (i.e. comments and add tags) --- core/tests/Theme_Test.php | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 core/tests/Theme_Test.php (limited to 'core/tests') diff --git a/core/tests/Theme_Test.php b/core/tests/Theme_Test.php deleted file mode 100644 index 8852a6a1..00000000 --- a/core/tests/Theme_Test.php +++ /dev/null @@ -1,47 +0,0 @@ -assert_equal("http://./themes/fake_theme/file", $theme->url("file")); - } - - public function display_test() { - $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 { - public $page_name = null; - - public function __construct($page_name) { - $this->page_name = $page_name; - } -} \ No newline at end of file -- cgit v1.2.3