| @@ 5-31 (lines=27) @@ | ||
| 2 | ||
| 3 | namespace App\Tests\Functional\Controller; |
|
| 4 | ||
| 5 | class AdminPerformanceEventControllerTest extends AbstractAdminController |
|
| 6 | { |
|
| 7 | public function testPerformanceEventListAction() |
|
| 8 | { |
|
| 9 | $this->request('/admin/PerformanceEvent/list', 'GET', 302); |
|
| 10 | ||
| 11 | $this->logIn(); |
|
| 12 | ||
| 13 | $this->request('/admin/PerformanceEvent/list', 'GET', 200); |
|
| 14 | $this->assertAdminListPageHasColumns(['Performance', 'Date Time', 'Venue', 'Buy Ticket Link', 'Action']); |
|
| 15 | } |
|
| 16 | ||
| 17 | public function testPerformanceEventCreateAction() |
|
| 18 | { |
|
| 19 | $this->request('/admin/PerformanceEvent/create', 'GET', 302); |
|
| 20 | ||
| 21 | $this->logIn(); |
|
| 22 | ||
| 23 | $this->request('/admin/PerformanceEvent/create', 'GET', 200); |
|
| 24 | } |
|
| 25 | ||
| 26 | public function testPerformanceEventDeleteAction() |
|
| 27 | { |
|
| 28 | $object = $this->getEm()->getRepository('App:PerformanceEvent')->findOneBy([]); |
|
| 29 | $this->processDeleteAction($object); |
|
| 30 | } |
|
| 31 | } |
|
| 32 | ||
| @@ 5-31 (lines=27) @@ | ||
| 2 | ||
| 3 | namespace App\Tests\Functional\Controller; |
|
| 4 | ||
| 5 | class AdminRoleControllerTest extends AbstractAdminController |
|
| 6 | { |
|
| 7 | public function testRoleListAction() |
|
| 8 | { |
|
| 9 | $this->request('/admin/Role/list', 'GET', 302); |
|
| 10 | ||
| 11 | $this->logIn(); |
|
| 12 | ||
| 13 | $this->request('/admin/Role/list', 'GET', 200); |
|
| 14 | $this->assertAdminListPageHasColumns(['Title', 'Description', 'Performance', 'Employee', 'Action']); |
|
| 15 | } |
|
| 16 | ||
| 17 | public function testRoleCreateAction() |
|
| 18 | { |
|
| 19 | $this->request('/admin/Role/create', 'GET', 302); |
|
| 20 | ||
| 21 | $this->logIn(); |
|
| 22 | ||
| 23 | $this->request('/admin/Role/create', 'GET', 200); |
|
| 24 | } |
|
| 25 | ||
| 26 | public function testRoleDeleteAction() |
|
| 27 | { |
|
| 28 | $object = $this->getEm()->getRepository('App:Role')->findOneBy([]); |
|
| 29 | $this->processDeleteAction($object); |
|
| 30 | } |
|
| 31 | } |
|
| 32 | ||