From da9c170ba7ad286808f2eb0d975c4a0c10b68107 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 17 May 2009 22:47:34 +0000 Subject: Update tests to reflect the new code that allows changing file and directory names --- core/tests/Albums_Controller_Test.php | 1 + core/tests/Photos_Controller_Test.php | 1 + 2 files changed, 2 insertions(+) (limited to 'core/tests') diff --git a/core/tests/Albums_Controller_Test.php b/core/tests/Albums_Controller_Test.php index 33d6b896..ef1fac77 100644 --- a/core/tests/Albums_Controller_Test.php +++ b/core/tests/Albums_Controller_Test.php @@ -32,6 +32,7 @@ class Albums_Controller_Test extends Unit_Test_Case { $album = album::create($root, "test", "test", "test"); $orig_name = $album->name; + $_POST["dirname"] = "test"; $_POST["name"] = "new name"; $_POST["title"] = "new title"; $_POST["description"] = "new description"; diff --git a/core/tests/Photos_Controller_Test.php b/core/tests/Photos_Controller_Test.php index 0a15a88e..71319315 100644 --- a/core/tests/Photos_Controller_Test.php +++ b/core/tests/Photos_Controller_Test.php @@ -32,6 +32,7 @@ class Photos_Controller_Test extends Unit_Test_Case { $photo = photo::create($root, DOCROOT . "core/tests/test.jpg", "test.jpeg", "test", "test"); $orig_name = $photo->name; + $_POST["filename"] = "test.jpeg"; $_POST["name"] = "new name"; $_POST["title"] = "new title"; $_POST["description"] = "new description"; -- cgit v1.2.3