diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-09-02 11:58:04 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-09-02 11:58:04 -0700 |
commit | b842a9d9ca21d07241b5fa11c5263e18f830c88b (patch) | |
tree | 9de5fbcea250d9651173bc0ea66c81d049a2007a /modules/gallery | |
parent | b9293755c03a6bf55a33732968481aa7a73fcce0 (diff) |
Fix formatting, and use a properly named file in
change_photo_no_csrf_fails_test() so that GD doesn't bomb.
Diffstat (limited to 'modules/gallery')
-rw-r--r-- | modules/gallery/tests/Photos_Controller_Test.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/gallery/tests/Photos_Controller_Test.php b/modules/gallery/tests/Photos_Controller_Test.php index f7d3f72f..5c4802c2 100644 --- a/modules/gallery/tests/Photos_Controller_Test.php +++ b/modules/gallery/tests/Photos_Controller_Test.php @@ -33,8 +33,8 @@ class Photos_Controller_Test extends Unit_Test_Case { public function change_photo_test() { $controller = new Photos_Controller(); $root = ORM::factory("item", 1); - $this->_photo = photo::create($root, MODPATH . "gallery/tests/test.jpg", "test.jpeg", "test", - "test"); + $this->_photo = photo::create( + $root, MODPATH . "gallery/tests/test.jpg", "test.jpeg", "test", "test"); $orig_name = $this->_photo->name; $_POST["filename"] = "test.jpeg"; @@ -63,7 +63,8 @@ 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); - $this->_photo = photo::create($root, MODPATH . "gallery/tests/test.jpg", "test", "test", "test"); + $this->_photo = photo::create( + $root, MODPATH . "gallery/tests/test.jpg", "test.jpg", "test", "test"); $_POST["name"] = "new name"; $_POST["title"] = "new title"; $_POST["description"] = "new description"; |