mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-13 10:49:32 +01:00
Show exceptions that occurs occuring tests.
This commit is contained in:
@@ -61,10 +61,12 @@ class ApplicationAvailabilityFunctionalTest extends WebTestCase
|
||||
$url = '/en'.$url;
|
||||
|
||||
//Try to access pages with admin, because he should be able to view every page!
|
||||
static::ensureKernelShutdown();
|
||||
$client = static::createClient([], [
|
||||
'PHP_AUTH_USER' => 'admin',
|
||||
'PHP_AUTH_PW' => 'test',
|
||||
]);
|
||||
$client->catchExceptions(false);
|
||||
|
||||
$client->request('GET', $url);
|
||||
|
||||
|
||||
@@ -79,6 +79,7 @@ abstract class AbstractAdminControllerTest extends WebTestCase
|
||||
'PHP_AUTH_PW' => 'test',
|
||||
]);
|
||||
|
||||
$client->catchExceptions(false);
|
||||
if (false === $read) {
|
||||
$this->expectException(AccessDeniedException::class);
|
||||
}
|
||||
|
||||
@@ -63,6 +63,7 @@ class RedirectControllerTest extends WebTestCase
|
||||
'PHP_AUTH_PW' => 'test',
|
||||
]);
|
||||
$this->client->disableReboot();
|
||||
$this->client->catchExceptions(false);
|
||||
$this->em = self::$container->get(EntityManagerInterface::class);
|
||||
$this->userRepo = $this->em->getRepository(User::class);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user