diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-08 02:21:28 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-08 02:21:28 +0000 |
commit | 1fc2307faba7f280e9251de54504122a1dcb187e (patch) | |
tree | 3354dbca31ed92b50f0894deefe5154a0d0c7484 /core/tests | |
parent | 7ebbe189d4a6955532fb17f4cb9466115279ca35 (diff) |
rollback r20001-r19998, r19995. This may require a reinstall
Diffstat (limited to 'core/tests')
-rw-r--r-- | core/tests/Album_Helper_Test.php | 1 | ||||
-rw-r--r-- | core/tests/Photo_Helper_Test.php | 12 |
2 files changed, 0 insertions, 13 deletions
diff --git a/core/tests/Album_Helper_Test.php b/core/tests/Album_Helper_Test.php index 75981265..d085ca88 100644 --- a/core/tests/Album_Helper_Test.php +++ b/core/tests/Album_Helper_Test.php @@ -43,7 +43,6 @@ class Album_Helper_Test extends Unit_Test_Case { $album1 = album::create($root, $rand, $rand, $rand); $album2 = album::create($root, $rand, $rand, $rand); $this->assert_true($album1->name != $album2->name); - $this->assert_true($album1->path != $album2->path); } public function thumb_url_test() { diff --git a/core/tests/Photo_Helper_Test.php b/core/tests/Photo_Helper_Test.php index 5db63e49..2219a846 100644 --- a/core/tests/Photo_Helper_Test.php +++ b/core/tests/Photo_Helper_Test.php @@ -53,18 +53,6 @@ class Photo_Helper_Test extends Unit_Test_Case { $photo1 = photo::create($root, DOCROOT . "core/tests/test.jpg", "$rand.jpg", $rand, $rand); $photo2 = photo::create($root, DOCROOT . "core/tests/test.jpg", "$rand.jpg", $rand, $rand); $this->assert_true($photo1->name != $photo2->name); - $this->assert_true($photo1->path != $photo2->path); - } - - public function create_special_characters_in_name_test() { - $rand = rand(); - $rand2 = rand(); - $name = "$rand & $rand's.jpg"; - $path = !empty($path) ? $path : preg_replace("/[^A-Za-z0-9\.\-_]/", "_", $name); - $root = ORM::factory("item", 1); - $photo = photo::create($root, DOCROOT . "core/tests/test.jpg", $name, $rand, $rand); - $this->assert_equal($name, $photo->name); - $this->assert_equal($path, $photo->path); } public function create_photo_with_no_extension_test() { |