mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-22 01:19:54 -04:00
Update test to match change in Item_Model::as_restful_array made in
7e31f97b4c for #1536.
This commit is contained in:
@@ -362,11 +362,11 @@ class Item_Model_Test extends Gallery_Unit_Test_Case {
|
||||
}
|
||||
|
||||
public function as_restful_array_with_edit_bit_test() {
|
||||
$response = item::root()->as_restful_array(true);
|
||||
$response = item::root()->as_restful_array();
|
||||
$this->assert_true($response["can_edit"]);
|
||||
|
||||
identity::set_active_user(identity::guest());
|
||||
$response = item::root()->as_restful_array(true);
|
||||
$response = item::root()->as_restful_array();
|
||||
$this->assert_false($response["can_edit"]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user