assert_true(file_exists(VARPATH . "albums")); $this->assert_true(file_exists(VARPATH . "resizes")); } public function install_registers_gallery_module_test() { $gallery = ORM::factory("module")->where("name", "gallery")->find(); $this->assert_equal("gallery", $gallery->name); // This is probably too volatile to keep for long $this->assert_equal(2, $gallery->version); } public function install_creates_root_item_test() { $max_right = ORM::factory("item") ->select("MAX(`right`) AS `right`") ->find()->right; $root = ORM::factory('item')->find(1); $this->assert_equal("Gallery", $root->title); $this->assert_equal(1, $root->left); $this->assert_equal($max_right, $root->right); $this->assert_equal(null, $root->parent_id); $this->assert_equal(1, $root->level); } }