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:
parent
655ec5e07a
commit
aa5c7f05b8
43 changed files with 966 additions and 1239 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue