1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

Add methods to all controllers

This commit is contained in:
Yassine Guedidi 2025-03-10 01:15:45 +01:00
parent a71b78531d
commit 24784768f5
35 changed files with 118 additions and 109 deletions

View file

@ -56,7 +56,7 @@ class PocketControllerTest extends WallabagTestCase
$this->logInAs('admin');
$client = $this->getTestClient();
$client->request('GET', '/import/pocket/auth');
$client->request('POST', '/import/pocket/auth');
$this->assertSame(302, $client->getResponse()->getStatusCode());
}
@ -77,7 +77,7 @@ class PocketControllerTest extends WallabagTestCase
static::$kernel->getContainer()->set(PocketImport::class, $pocketImport);
$client->request('GET', '/import/pocket/auth');
$client->request('POST', '/import/pocket/auth');
$this->assertSame(301, $client->getResponse()->getStatusCode());
$this->assertStringContainsString('getpocket.com/auth/authorize', $client->getResponse()->headers->get('location'));