1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

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
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
43 changed files with 966 additions and 1239 deletions

View file

@ -13,7 +13,7 @@ class SiteCredentialControllerTest extends WallabagCoreTestCase
public function testAccessDeniedBecauseFeatureDisabled()
{
$this->logInAs('admin');
$client = $this->getClient();
$client = $this->getTestClient();
$client->getContainer()->get(Config::class)->set('restricted_access', 0);
@ -27,7 +27,7 @@ class SiteCredentialControllerTest extends WallabagCoreTestCase
public function testListSiteCredential()
{
$this->logInAs('admin');
$client = $this->getClient();
$client = $this->getTestClient();
$crawler = $client->request('GET', '/site-credentials/');
@ -42,7 +42,7 @@ class SiteCredentialControllerTest extends WallabagCoreTestCase
public function testNewSiteCredential()
{
$this->logInAs('admin');
$client = $this->getClient();
$client = $this->getTestClient();
$crawler = $client->request('GET', '/site-credentials/new');
@ -73,7 +73,7 @@ class SiteCredentialControllerTest extends WallabagCoreTestCase
public function testEditSiteCredential()
{
$this->logInAs('admin');
$client = $this->getClient();
$client = $this->getTestClient();
$credential = $this->createSiteCredential($client);
@ -106,7 +106,7 @@ class SiteCredentialControllerTest extends WallabagCoreTestCase
public function testEditFromADifferentUserSiteCredential()
{
$this->logInAs('admin');
$client = $this->getClient();
$client = $this->getTestClient();
$credential = $this->createSiteCredential($client);
@ -120,7 +120,7 @@ class SiteCredentialControllerTest extends WallabagCoreTestCase
public function testDeleteSiteCredential()
{
$this->logInAs('admin');
$client = $this->getClient();
$client = $this->getTestClient();
$credential = $this->createSiteCredential($client);