summaryrefslogtreecommitdiff
path: root/modules/gallery/tests/Photos_Controller_Test.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-11-25 12:41:01 -0800
committerTim Almdal <tnalmdal@shaw.ca>2009-11-25 12:46:04 -0800
commit2d5c232c42ea52e0c1115dd93edafecf1978fbfe (patch)
treed623dee31d6cf265f2dd09f5083d75ab5a2aae50 /modules/gallery/tests/Photos_Controller_Test.php
parent0bf81f0381ddde2efde55b10e2d73dfdbdca1e73 (diff)
Refactor the album, movie and photo handling to remove the REST_Controller. Partial fix for ticket #917
Diffstat (limited to 'modules/gallery/tests/Photos_Controller_Test.php')
-rw-r--r--modules/gallery/tests/Photos_Controller_Test.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gallery/tests/Photos_Controller_Test.php b/modules/gallery/tests/Photos_Controller_Test.php
index 624e6878..fa4f101a 100644
--- a/modules/gallery/tests/Photos_Controller_Test.php
+++ b/modules/gallery/tests/Photos_Controller_Test.php
@@ -44,7 +44,8 @@ class Photos_Controller_Test extends Unit_Test_Case {
access::allow(identity::everybody(), "edit", $root);
ob_start();
- $controller->_update($photo);
+ $controller->update($photo->id);
+ $photo->reload();
$results = ob_get_contents();
ob_end_clean();