From 90277704a2d2a8fd8d7f3191024ec901ad317f22 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sat, 7 Feb 2009 18:12:06 +0000 Subject: Changed the way album and photo creation guards against duplicate names. Added similiar code to insure that path names are not duplicated. --- core/tests/Album_Helper_Test.php | 1 + 1 file changed, 1 insertion(+) (limited to 'core/tests/Album_Helper_Test.php') diff --git a/core/tests/Album_Helper_Test.php b/core/tests/Album_Helper_Test.php index d085ca88..75981265 100644 --- a/core/tests/Album_Helper_Test.php +++ b/core/tests/Album_Helper_Test.php @@ -43,6 +43,7 @@ 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() { -- cgit v1.2.3