mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 05:23:21 +00:00
Fix unit tests
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user