summaryrefslogtreecommitdiff
path: root/core/tests/Item_Test.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-03 02:08:07 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-03 02:08:07 +0000
commit8831e89f406a2d3e8e56217dbffa142b88931fea (patch)
treefb770c2cad9956cf8d2884d51eeb8c6a8b6acbc6 /core/tests/Item_Test.php
parent33e9cdad15e74f2b9482a5e7c1564ee468172418 (diff)
More bootstrap code.
* core_installer::install now creates the root album and the albums/thumbnails directories under VARPATH. * Add a test for core_installer
Diffstat (limited to 'core/tests/Item_Test.php')
-rw-r--r--core/tests/Item_Test.php5
1 files changed, 5 insertions, 0 deletions
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);
+ }
}