Upgrade to Symfony 4.4

- disable autowiring for Event (because the Entry entity was injected)
- rename `getClient()` for test to `getTestClient()` to avoid error while overriding (from `BrowserKitAssertionsTrait`)
This commit is contained in:
Jeremy Benoist
2022-11-23 17:09:32 +01:00
parent 655ec5e07a
commit aa5c7f05b8
43 changed files with 966 additions and 1239 deletions

View File

@ -11,7 +11,7 @@ class SecurityControllerTest extends WallabagCoreTestCase
public function testLoginWithEmail()
{
$this->logInAsUsingHttp('bigboss@wallabag.org');
$client = $this->getClient();
$client = $this->getTestClient();
$client->followRedirects();
$crawler = $client->request('GET', '/config');
@ -21,7 +21,7 @@ class SecurityControllerTest extends WallabagCoreTestCase
public function testLoginWithout2Factor()
{
$this->logInAs('admin');
$client = $this->getClient();
$client = $this->getTestClient();
$client->followRedirects();
$crawler = $client->request('GET', '/config');
@ -30,7 +30,7 @@ class SecurityControllerTest extends WallabagCoreTestCase
public function testLoginWith2FactorEmail()
{
$client = $this->getClient();
$client = $this->getTestClient();
if (!$client->getContainer()->getParameter('twofactor_auth')) {
$this->markTestSkipped('twofactor_auth is not enabled.');
@ -63,7 +63,7 @@ class SecurityControllerTest extends WallabagCoreTestCase
public function testLoginWith2FactorGoogle()
{
$client = $this->getClient();
$client = $this->getTestClient();
if (!$client->getContainer()->getParameter('twofactor_auth')) {
$this->markTestSkipped('twofactor_auth is not enabled.');
@ -96,7 +96,7 @@ class SecurityControllerTest extends WallabagCoreTestCase
public function testEnabledRegistration()
{
$client = $this->getClient();
$client = $this->getTestClient();
if (!$client->getContainer()->getParameter('fosuser_registration')) {
$this->markTestSkipped('fosuser_registration is not enabled.');