Fix unit tests

This commit is contained in:
Romain Neutron
2012-03-30 13:46:08 +02:00
parent 14cb8dcc41
commit 30df661cb8
3 changed files with 2 additions and 4 deletions

View File

@@ -237,7 +237,7 @@ class DescriptionTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
, 'type_' . $id => 'string'
, 'vocabulary_' . $id => 'User'
));
$this->assertTrue($this->client->getResponse()->isOk());
$this->assertFalse($this->client->getResponse()->isOk());
$this->assertEquals("You are not allowed to access this zone", $this->client->getResponse()->getContent());
$field->delete();
}
@@ -253,7 +253,7 @@ class DescriptionTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
$databox = array_shift($appbox->get_databoxes());
$this->client->request("GET", "/description/" . $databox->get_sbas_id() . "/");
$this->assertTrue($this->client->getResponse()->isOk());
$this->assertFalse($this->client->getResponse()->isOk());
$this->assertEquals("You are not allowed to access this zone", $this->client->getResponse()->getContent());
}