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:
parent
a71b78531d
commit
24784768f5
35 changed files with 118 additions and 109 deletions
|
@ -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'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue