Show exceptions that occurs occuring tests.

This commit is contained in:
Jan Böhmer 2020-03-29 18:24:10 +02:00
parent 3866082cb7
commit 445a3ddff6
3 changed files with 4 additions and 0 deletions

View file

@ -61,10 +61,12 @@ class ApplicationAvailabilityFunctionalTest extends WebTestCase
$url = '/en'.$url; $url = '/en'.$url;
//Try to access pages with admin, because he should be able to view every page! //Try to access pages with admin, because he should be able to view every page!
static::ensureKernelShutdown();
$client = static::createClient([], [ $client = static::createClient([], [
'PHP_AUTH_USER' => 'admin', 'PHP_AUTH_USER' => 'admin',
'PHP_AUTH_PW' => 'test', 'PHP_AUTH_PW' => 'test',
]); ]);
$client->catchExceptions(false);
$client->request('GET', $url); $client->request('GET', $url);

View file

@ -79,6 +79,7 @@ abstract class AbstractAdminControllerTest extends WebTestCase
'PHP_AUTH_PW' => 'test', 'PHP_AUTH_PW' => 'test',
]); ]);
$client->catchExceptions(false);
if (false === $read) { if (false === $read) {
$this->expectException(AccessDeniedException::class); $this->expectException(AccessDeniedException::class);
} }

View file

@ -63,6 +63,7 @@ class RedirectControllerTest extends WebTestCase
'PHP_AUTH_PW' => 'test', 'PHP_AUTH_PW' => 'test',
]); ]);
$this->client->disableReboot(); $this->client->disableReboot();
$this->client->catchExceptions(false);
$this->em = self::$container->get(EntityManagerInterface::class); $this->em = self::$container->get(EntityManagerInterface::class);
$this->userRepo = $this->em->getRepository(User::class); $this->userRepo = $this->em->getRepository(User::class);
} }