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

@ -82,7 +82,7 @@ class FeedControllerTest extends WallabagCoreTestCase
*/
public function testBadUrl($url)
{
$client = $this->getClient();
$client = $this->getTestClient();
$client->request('GET', $url);
@ -91,7 +91,7 @@ class FeedControllerTest extends WallabagCoreTestCase
public function testUnread()
{
$client = $this->getClient();
$client = $this->getTestClient();
$em = $client->getContainer()->get(EntityManagerInterface::class);
$user = $em
->getRepository(User::class)
@ -112,7 +112,7 @@ class FeedControllerTest extends WallabagCoreTestCase
public function testStarred()
{
$client = $this->getClient();
$client = $this->getTestClient();
$em = $client->getContainer()->get(EntityManagerInterface::class);
$user = $em
->getRepository(User::class)
@ -124,7 +124,7 @@ class FeedControllerTest extends WallabagCoreTestCase
$em->persist($config);
$em->flush();
$client = $this->getClient();
$client = $this->getTestClient();
$client->request('GET', '/feed/admin/SUPERTOKEN/starred');
$this->assertSame(200, $client->getResponse()->getStatusCode(), 1);
@ -134,7 +134,7 @@ class FeedControllerTest extends WallabagCoreTestCase
public function testArchives()
{
$client = $this->getClient();
$client = $this->getTestClient();
$em = $client->getContainer()->get(EntityManagerInterface::class);
$user = $em
->getRepository(User::class)
@ -146,7 +146,7 @@ class FeedControllerTest extends WallabagCoreTestCase
$em->persist($config);
$em->flush();
$client = $this->getClient();
$client = $this->getTestClient();
$client->request('GET', '/feed/admin/SUPERTOKEN/archive');
$this->assertSame(200, $client->getResponse()->getStatusCode());
@ -156,7 +156,7 @@ class FeedControllerTest extends WallabagCoreTestCase
public function testAll()
{
$client = $this->getClient();
$client = $this->getTestClient();
$em = $client->getContainer()->get(EntityManagerInterface::class);
$user = $em
->getRepository(User::class)
@ -168,7 +168,7 @@ class FeedControllerTest extends WallabagCoreTestCase
$em->persist($config);
$em->flush();
$client = $this->getClient();
$client = $this->getTestClient();
$client->request('GET', '/feed/admin/SUPERTOKEN/all');
$this->assertSame(200, $client->getResponse()->getStatusCode());
@ -178,7 +178,7 @@ class FeedControllerTest extends WallabagCoreTestCase
public function testPagination()
{
$client = $this->getClient();
$client = $this->getTestClient();
$em = $client->getContainer()->get(EntityManagerInterface::class);
$user = $em
->getRepository(User::class)
@ -190,7 +190,7 @@ class FeedControllerTest extends WallabagCoreTestCase
$em->persist($config);
$em->flush();
$client = $this->getClient();
$client = $this->getTestClient();
$client->request('GET', '/feed/admin/SUPERTOKEN/unread');
$this->assertSame(200, $client->getResponse()->getStatusCode());
@ -206,7 +206,7 @@ class FeedControllerTest extends WallabagCoreTestCase
public function testTags()
{
$client = $this->getClient();
$client = $this->getTestClient();
$em = $client->getContainer()->get(EntityManagerInterface::class);
$user = $em
->getRepository(User::class)
@ -247,7 +247,7 @@ class FeedControllerTest extends WallabagCoreTestCase
$em->flush();
$client = $this->getClient();
$client = $this->getTestClient();
// tag foo - without sort
$crawler = $client->request('GET', '/feed/admin/SUPERTOKEN/tags/foo');
@ -302,7 +302,7 @@ class FeedControllerTest extends WallabagCoreTestCase
*/
public function testRedirectFromRssToAtom($url)
{
$client = $this->getClient();
$client = $this->getTestClient();
$client->request('GET', $url);