fix deprecations (#2225)

This commit is contained in:
Kevin Papst
2020-12-27 20:47:09 +01:00
committed by GitHub
parent c1a54abc58
commit a5fdf81df5
4 changed files with 12 additions and 9 deletions

View File

@@ -28,12 +28,16 @@ abstract class ControllerBaseTest extends WebTestCase
public const DEFAULT_LANGUAGE = 'en';
protected function tearDown(): void
{
$this->clearConfigCache();
parent::tearDown();
}
protected function clearConfigCache()
{
/** @var ConfigurationRepository $repository */
$repository = static::$kernel->getContainer()->get(ConfigurationRepository::class);
$repository->clearCache();
parent::tearDown();
}
protected function getClientForAuthenticatedUser(string $role = User::ROLE_USER): HttpKernelBrowser