3 namespace Tests\Wallabag\CoreBundle\Controller
;
5 use Tests\Wallabag\CoreBundle\WallabagCoreTestCase
;
8 * The controller `SettingsController` does not exist.
9 * This test cover security against the internal settings page managed by CraueConfigBundle.
11 class SettingsControllerTest
extends WallabagCoreTestCase
13 public function testSettingsWithAdmin()
15 $this->logInAs('admin');
16 $client = $this->getClient();
18 $crawler = $client->request('GET', '/settings');
20 $this->assertSame(200, $client->getResponse()->getStatusCode());
23 public function testSettingsWithNormalUser()
25 $this->logInAs('bob');
26 $client = $this->getClient();
28 $crawler = $client->request('GET', '/settings');
30 $this->assertSame(403, $client->getResponse()->getStatusCode());