mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-14 02:50:13 -04:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user