summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-09-08 21:32:21 -0700
committerBharat Mediratta <bharat@menalto.com>2009-09-08 21:32:21 -0700
commit5d76a73596eedd8e473c58dc69b1959e8736377f (patch)
treeab258d10509da5ad0332157b9edf99b13409470c
parent2ca20e8ab17de6d53200c8ace0595f7a6e27bd27 (diff)
Fix test to support new slug code.
-rw-r--r--modules/gallery/tests/Photos_Controller_Test.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gallery/tests/Photos_Controller_Test.php b/modules/gallery/tests/Photos_Controller_Test.php
index ac5ecdfd..48c85aac 100644
--- a/modules/gallery/tests/Photos_Controller_Test.php
+++ b/modules/gallery/tests/Photos_Controller_Test.php
@@ -41,6 +41,7 @@ class Photos_Controller_Test extends Unit_Test_Case {
$_POST["name"] = "new name";
$_POST["title"] = "new title";
$_POST["description"] = "new description";
+ $_POST["slug"] = "new-slug";
$_POST["csrf"] = access::csrf_token();
access::allow(group::everybody(), "edit", $root);
@@ -49,9 +50,8 @@ class Photos_Controller_Test extends Unit_Test_Case {
$results = ob_get_contents();
ob_end_clean();
- $this->assert_equal(
- json_encode(array("result" => "success")),
- $results);
+ $this->assert_equal(json_encode(array("result" => "success")), $results);
+ $this->assert_equal("new-slug", $this->_photo->slug);
$this->assert_equal("new title", $this->_photo->title);
$this->assert_equal("new description", $this->_photo->description);