@@ 15-23 (lines=9) @@ | ||
12 | */ |
|
13 | class AppControllerTest extends FunctionalTestCase |
|
14 | { |
|
15 | public function testIndexPage() |
|
16 | { |
|
17 | $this->logIn('ROLE_USER'); |
|
18 | $this->client->request('GET', '/'); |
|
19 | ||
20 | $this->assertTrue($this->client->getResponse()->isSuccessful()); |
|
21 | $this->assertContains('<div data-ng-view>', $this->getResponseContent(true)); |
|
22 | $this->assertNotContains('Manage Users', $this->getResponseContent(true)); |
|
23 | } |
|
24 | ||
25 | public function testIndexPageAsSuperAdmin() |
|
26 | { |
|
@@ 25-33 (lines=9) @@ | ||
22 | $this->assertNotContains('Manage Users', $this->getResponseContent(true)); |
|
23 | } |
|
24 | ||
25 | public function testIndexPageAsSuperAdmin() |
|
26 | { |
|
27 | $this->logIn('ROLE_SUPER_ADMIN'); |
|
28 | $this->client->request('GET', '/'); |
|
29 | ||
30 | $this->assertTrue($this->client->getResponse()->isSuccessful()); |
|
31 | $this->assertContains('<div data-ng-view>', $this->getResponseContent(true)); |
|
32 | $this->assertContains('Manage Users', $this->getResponseContent(true)); |
|
33 | } |
|
34 | ||
35 | public function testApiDocPage() |
|
36 | { |