mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 10:23:17 +00:00
PHRAS-2605_fix-unittest-bootstrap_4.1
remove debug
This commit is contained in:
@@ -256,7 +256,6 @@ class Application extends SilexApplication
|
|||||||
$this->register(new OrderServiceProvider());
|
$this->register(new OrderServiceProvider());
|
||||||
$this->register(new WebhookServiceProvider());
|
$this->register(new WebhookServiceProvider());
|
||||||
|
|
||||||
|
|
||||||
$this['monolog'] = $this->share(
|
$this['monolog'] = $this->share(
|
||||||
$this->extend('monolog', function (LoggerInterface $logger, Application $app) {
|
$this->extend('monolog', function (LoggerInterface $logger, Application $app) {
|
||||||
|
|
||||||
@@ -274,7 +273,6 @@ class Application extends SilexApplication
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
$this['phraseanet.exception_handler'] = $this->share(function ($app) {
|
$this['phraseanet.exception_handler'] = $this->share(function ($app) {
|
||||||
/** @var PhraseaExceptionHandler $handler */
|
/** @var PhraseaExceptionHandler $handler */
|
||||||
$handler = PhraseaExceptionHandler::register($app['debug']);
|
$handler = PhraseaExceptionHandler::register($app['debug']);
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ class LocaleServiceProvider implements ServiceProviderInterface
|
|||||||
|
|
||||||
if (0 === count($enabledLanguages)) {
|
if (0 === count($enabledLanguages)) {
|
||||||
$app['monolog']->error('Wrong language configuration, no language activated');
|
$app['monolog']->error('Wrong language configuration, no language activated');
|
||||||
|
|
||||||
return $availableLanguages;
|
return $availableLanguages;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -106,7 +106,6 @@ class UploadTest extends \PhraseanetAuthenticatedWebTestCase
|
|||||||
|
|
||||||
$record = new \record_adapter(self::$DI['app'], $id[0], $id[1]);
|
$record = new \record_adapter(self::$DI['app'], $id[0], $id[1]);
|
||||||
$this->assertTrue($record->get_thumbnail()->is_physically_present());
|
$this->assertTrue($record->get_thumbnail()->is_physically_present());
|
||||||
$zzz = $record->get_caption()->get_fields();
|
|
||||||
$fields = $record->get_caption()->get_fields(['FileName']);
|
$fields = $record->get_caption()->get_fields(['FileName']);
|
||||||
$field = array_pop($fields);
|
$field = array_pop($fields);
|
||||||
$this->assertEquals('KIKOO.JPG', $field->get_serialized_values());
|
$this->assertEquals('KIKOO.JPG', $field->get_serialized_values());
|
||||||
|
|||||||
@@ -273,7 +273,6 @@ abstract class PhraseanetTestCase extends WebTestCase
|
|||||||
static $decodedFixtureIds;
|
static $decodedFixtureIds;
|
||||||
|
|
||||||
if (is_null($decodedFixtureIds)) {
|
if (is_null($decodedFixtureIds)) {
|
||||||
$p = sys_get_temp_dir().'/fixtures.json';
|
|
||||||
$decodedFixtureIds = json_decode(file_get_contents(sys_get_temp_dir().'/fixtures.json'), true);
|
$decodedFixtureIds = json_decode(file_get_contents(sys_get_temp_dir().'/fixtures.json'), true);
|
||||||
}
|
}
|
||||||
self::$fixtureIds = $decodedFixtureIds;
|
self::$fixtureIds = $decodedFixtureIds;
|
||||||
|
|||||||
Reference in New Issue
Block a user