From 8831e89f406a2d3e8e56217dbffa142b88931fea Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 3 Nov 2008 02:08:07 +0000 Subject: More bootstrap code. * core_installer::install now creates the root album and the albums/thumbnails directories under VARPATH. * Add a test for core_installer --- core/tests/Item_Test.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/tests/Item_Test.php') diff --git a/core/tests/Item_Test.php b/core/tests/Item_Test.php index f83c60f1..d077932f 100644 --- a/core/tests/Item_Test.php +++ b/core/tests/Item_Test.php @@ -21,4 +21,9 @@ class Item_Test extends Unit_Test_Case { public function create_item_test() { ORM::factory('item'); } + + public function create_root_item_test() { + $root = ORM::factory('item')->find(1); + $this->assert_equal("Gallery", $root->title); + } } -- cgit v1.2.3