PHRAS-2605_fix-unittest-bootstrap_4.1

remove debug
This commit is contained in:
Jean-Yves Gaulier
2019-05-28 15:16:28 +02:00
parent 0cbc5a8ef4
commit 1653c2494c
4 changed files with 1 additions and 4 deletions

View File

@@ -256,7 +256,6 @@ class Application extends SilexApplication
$this->register(new OrderServiceProvider());
$this->register(new WebhookServiceProvider());
$this['monolog'] = $this->share(
$this->extend('monolog', function (LoggerInterface $logger, Application $app) {
@@ -274,7 +273,6 @@ class Application extends SilexApplication
})
);
$this['phraseanet.exception_handler'] = $this->share(function ($app) {
/** @var PhraseaExceptionHandler $handler */
$handler = PhraseaExceptionHandler::register($app['debug']);

View File

@@ -43,6 +43,7 @@ class LocaleServiceProvider implements ServiceProviderInterface
if (0 === count($enabledLanguages)) {
$app['monolog']->error('Wrong language configuration, no language activated');
return $availableLanguages;
}

View File

@@ -106,7 +106,6 @@ class UploadTest extends \PhraseanetAuthenticatedWebTestCase
$record = new \record_adapter(self::$DI['app'], $id[0], $id[1]);
$this->assertTrue($record->get_thumbnail()->is_physically_present());
$zzz = $record->get_caption()->get_fields();
$fields = $record->get_caption()->get_fields(['FileName']);
$field = array_pop($fields);
$this->assertEquals('KIKOO.JPG', $field->get_serialized_values());

View File

@@ -273,7 +273,6 @@ abstract class PhraseanetTestCase extends WebTestCase
static $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);
}
self::$fixtureIds = $decodedFixtureIds;