summaryrefslogtreecommitdiff
path: root/modules/gallery/tests
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-19 19:24:46 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-19 19:24:46 -0800
commit512910962d62a2011d7770da1b6e68bd6bbad983 (patch)
tree1e263cf6df55642d9842a2d09cb83563bc8e0831 /modules/gallery/tests
parentc3ed64fc6c0c1c9001d32191b0f1a5c21ec4b7c5 (diff)
Change "dirname" to "name" in the edit album form. I'd rather have
consistency between field names than deal with underlying issues with Forge bitching about the "name" property.
Diffstat (limited to 'modules/gallery/tests')
-rw-r--r--modules/gallery/tests/Albums_Controller_Test.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gallery/tests/Albums_Controller_Test.php b/modules/gallery/tests/Albums_Controller_Test.php
index 8ba2c7bc..26dc2571 100644
--- a/modules/gallery/tests/Albums_Controller_Test.php
+++ b/modules/gallery/tests/Albums_Controller_Test.php
@@ -31,9 +31,9 @@ class Albums_Controller_Test extends Unit_Test_Case {
$album = test::random_album();
// Randomize to avoid conflicts.
- $new_dirname = "new_name_" . rand();
+ $new_name = "new_name_" . rand();
- $_POST["dirname"] = $new_dirname;
+ $_POST["name"] = $new_name;
$_POST["title"] = "new title";
$_POST["description"] = "new description";
$_POST["column"] = "weight";
@@ -49,7 +49,7 @@ class Albums_Controller_Test extends Unit_Test_Case {
ob_end_clean();
$this->assert_equal(json_encode(array("result" => "success")), $results);
- $this->assert_equal($new_dirname, $album->name);
+ $this->assert_equal($new_name, $album->name);
$this->assert_equal("new title", $album->title);
$this->assert_equal("new description", $album->description);
}