mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-19 07:53:14 +00:00
Rename Api application
This commit is contained in:
@@ -65,7 +65,7 @@ abstract class ApiAbstract extends \PhraseanetWebTestCaseAbstract
|
|||||||
self::$DI['app'] = self::$DI->share(function() {
|
self::$DI['app'] = self::$DI->share(function() {
|
||||||
|
|
||||||
$environment = 'test';
|
$environment = 'test';
|
||||||
$app = require __DIR__ . '/../../../../../lib/Alchemy/Phrasea/Application/ApiVersion.php';
|
$app = require __DIR__ . '/../../../../../lib/Alchemy/Phrasea/Application/Api.php';
|
||||||
|
|
||||||
$app['debug'] = true;
|
$app['debug'] = true;
|
||||||
|
|
||||||
@@ -86,7 +86,7 @@ abstract class ApiAbstract extends \PhraseanetWebTestCaseAbstract
|
|||||||
parent::setUpBeforeClass();
|
parent::setUpBeforeClass();
|
||||||
|
|
||||||
$environment = 'test';
|
$environment = 'test';
|
||||||
$application = require __DIR__ . '/../../../../../lib/Alchemy/Phrasea/Application/ApiVersion.php';
|
$application = require __DIR__ . '/../../../../../lib/Alchemy/Phrasea/Application/Api.php';
|
||||||
|
|
||||||
self::$oauthApplication = \API_OAuth2_Application::create($application, self::$DI['user_notAdmin'], 'test API v1');
|
self::$oauthApplication = \API_OAuth2_Application::create($application, self::$DI['user_notAdmin'], 'test API v1');
|
||||||
self::$account = \API_OAuth2_Account::load_with_user($application, self::$oauthApplication, self::$DI['user_notAdmin']);
|
self::$account = \API_OAuth2_Account::load_with_user($application, self::$oauthApplication, self::$DI['user_notAdmin']);
|
||||||
|
@@ -21,7 +21,7 @@ class ApiRootTest extends \PhraseanetWebTestCaseAbstract
|
|||||||
|
|
||||||
self::$DI['app'] = self::$DI->share(function() {
|
self::$DI['app'] = self::$DI->share(function() {
|
||||||
$environment = 'test';
|
$environment = 'test';
|
||||||
$app = require __DIR__ . '/../../../../../lib/Alchemy/Phrasea/Application/ApiVersion.php';
|
$app = require __DIR__ . '/../../../../../lib/Alchemy/Phrasea/Application/Api.php';
|
||||||
|
|
||||||
$app['debug'] = true;
|
$app['debug'] = true;
|
||||||
|
|
||||||
|
@@ -16,6 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
require_once __DIR__ . '/../../vendor/autoload.php';
|
require_once __DIR__ . '/../../vendor/autoload.php';
|
||||||
|
|
||||||
$app = require __DIR__ . '/../../lib/Alchemy/Phrasea/Application/ApiVersion.php';
|
$app = require __DIR__ . '/../../lib/Alchemy/Phrasea/Application/Api.php';
|
||||||
|
|
||||||
$app->run();
|
$app->run();
|
||||||
|
Reference in New Issue
Block a user