summaryrefslogtreecommitdiff
path: root/modules/gallery/tests/Photos_Controller_Test.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-05-27 16:15:00 -0700
committerBharat Mediratta <bharat@menalto.com>2009-05-27 16:17:29 -0700
commit88a3d43ba9b9377ba6bbe21a4547220ae3a37276 (patch)
treebcdfaa4188a7e9a8e698c895f84f0ca899005391 /modules/gallery/tests/Photos_Controller_Test.php
parent12fe58d997d2066dc362fd393a18b4e5da190513 (diff)
Update all references to the core application to now point to the
gallery module. This type of mass update is prone to some small bugs.
Diffstat (limited to 'modules/gallery/tests/Photos_Controller_Test.php')
-rw-r--r--modules/gallery/tests/Photos_Controller_Test.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/tests/Photos_Controller_Test.php b/modules/gallery/tests/Photos_Controller_Test.php
index 71319315..771cc90d 100644
--- a/modules/gallery/tests/Photos_Controller_Test.php
+++ b/modules/gallery/tests/Photos_Controller_Test.php
@@ -29,7 +29,7 @@ class Photos_Controller_Test extends Unit_Test_Case {
public function change_photo_test() {
$controller = new Photos_Controller();
$root = ORM::factory("item", 1);
- $photo = photo::create($root, DOCROOT . "core/tests/test.jpg", "test.jpeg", "test", "test");
+ $photo = photo::create($root, MODPATH . "gallery/tests/test.jpg", "test.jpeg", "test", "test");
$orig_name = $photo->name;
$_POST["filename"] = "test.jpeg";
@@ -58,7 +58,7 @@ class Photos_Controller_Test extends Unit_Test_Case {
public function change_photo_no_csrf_fails_test() {
$controller = new Photos_Controller();
$root = ORM::factory("item", 1);
- $photo = photo::create($root, DOCROOT . "core/tests/test.jpg", "test", "test", "test");
+ $photo = photo::create($root, MODPATH . "gallery/tests/test.jpg", "test", "test", "test");
$_POST["name"] = "new name";
$_POST["title"] = "new title";
$_POST["description"] = "new description";