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

View File

@@ -9,7 +9,6 @@
* file that was distributed with this source code.
*/
require_once __DIR__ . "/../../lib/classes/bootstrap.class.php";
require_once __DIR__ . "/PhraseanetPHPUnitListener.class.inc";
use Silex\WebTestCase;

View File

@@ -2,7 +2,6 @@
require_once __DIR__ . "/../../../../lib/vendor/oauth2/lib/OAuth2.inc";
require_once __DIR__ . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
require_once __DIR__ . '/../../../../lib/vendor/symfony/src/Symfony/Component/Yaml/Parser.php';
use Symfony\Component\HttpFoundation\Request;