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

@ -8,7 +8,7 @@ class ManageControllerTest extends WallabagCoreTestCase
{
public function testLogin()
{
$client = $this->getClient();
$client = $this->getTestClient();
$client->request('GET', '/users/list');
@ -19,7 +19,7 @@ class ManageControllerTest extends WallabagCoreTestCase
public function testCompleteScenario()
{
$this->logInAs('admin');
$client = $this->getClient();
$client = $this->getTestClient();
// Create a new user in the database
$crawler = $client->request('GET', '/users/list');
@ -71,7 +71,7 @@ class ManageControllerTest extends WallabagCoreTestCase
public function testDeleteDisabledForLoggedUser()
{
$this->logInAs('admin');
$client = $this->getClient();
$client = $this->getTestClient();
$crawler = $client->request('GET', '/users/' . $this->getLoggedInUserId() . '/edit');
$disabled = $crawler->selectButton('user.form.delete')->extract('disabled');
@ -82,7 +82,7 @@ class ManageControllerTest extends WallabagCoreTestCase
public function testUserSearch()
{
$this->logInAs('admin');
$client = $this->getClient();
$client = $this->getTestClient();
// Search on unread list
$crawler = $client->request('GET', '/users/list');