diff options
Diffstat (limited to 'core/tests/Photo_Test.php')
-rw-r--r-- | core/tests/Photo_Test.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/tests/Photo_Test.php b/core/tests/Photo_Test.php index 0980a187..cc4921c0 100644 --- a/core/tests/Photo_Test.php +++ b/core/tests/Photo_Test.php @@ -63,7 +63,9 @@ class Photo_Test extends Unit_Test_Case { public function resize_url_test() { $rand = rand(); - $photo = photo::create(1, DOCROOT . "core/tests/test.jpg", "$rand.jpg", $rand, $rand); - $this->assert_equal("http://./var/resizes/{$rand}.resize.jpg", $photo->resize_url()); + $album = album::create(1, $rand, $rand, $rand); + $photo = photo::create($album->id, DOCROOT . "core/tests/test.jpg", "$rand.jpg", $rand, $rand); + + $this->assert_equal("http://./var/resizes/{$rand}/{$rand}.resize.jpg", $photo->resize_url()); } } |