Update test to match change in Item_Model::as_restful_array made in

7e31f97b4c for #1536.
This commit is contained in:
Bharat Mediratta
2010-12-28 22:00:25 -08:00
parent 5d37d529b0
commit 9f3c6e4bee

View File

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