From 6da6b8ed52086d967bdb0d8e4140cbdffdb18cf7 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 3 Nov 2008 05:52:13 +0000 Subject: Theme helper. Right now it has one api method, theme::url which returns a url local to the theme that you're in. For example, if you're in themes/foo/views/page_header.html.php and you call theme::url("images/foo.png") then it'll create a url to: themes/foo/images/foo.png --- core/tests/Theme_Test.php | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create 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 new file mode 100644 index 00000000..b8f702f3 --- /dev/null +++ b/core/tests/Theme_Test.php @@ -0,0 +1,34 @@ +assert_equal("http://./themes/fake_theme/file", theme::url("file")); + } + + public function _fake_debug_backtrace() { + return array(array('file' => THEMEPATH . "fake_theme/views/some_file.html.php")); + } +} \ No newline at end of file -- cgit v1.2.3