forked from wallabag/wallabag
Remove voter & add tests
This commit is contained in:
@ -207,4 +207,17 @@ class PinboardControllerTest extends WallabagTestCase
|
||||
$this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text']));
|
||||
$this->assertStringContainsString('flashes.import.notice.failed', $body[0]);
|
||||
}
|
||||
|
||||
public function testImportPinboardDisabled()
|
||||
{
|
||||
$this->logInAs('admin');
|
||||
$client = $this->getTestClient();
|
||||
$client->getContainer()->get(Config::class)->set('pinboard_enabled', 0);
|
||||
|
||||
$client->request('GET', '/import/pinboard');
|
||||
|
||||
$this->assertSame(404, $client->getResponse()->getStatusCode());
|
||||
|
||||
$client->getContainer()->get(Config::class)->set('pinboard_enabled', 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user