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.
This commit is contained in:
Bharat Mediratta
2010-01-19 19:24:46 -08:00
parent c3ed64fc6c
commit 512910962d
3 changed files with 6 additions and 9 deletions

View File

@@ -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);
}