| 1 | <?php |
||
| 5 | class AppTestAbstract extends AbstractBaseFunctionTest |
||
| 6 | { |
||
| 7 | public function testReady() |
||
| 8 | { |
||
| 9 | $client = static::createClient(); |
||
| 10 | $client->request('GET', '/ready'); |
||
| 11 | |||
| 12 | $this->assertEquals('MediaMonks Functional Test App Ready', $client->getResponse()->getContent()); |
||
| 13 | } |
||
| 14 | |||
| 15 | public function testAdminDashboard() |
||
| 16 | { |
||
| 17 | $client = $this->getAuthenticatedClient(); |
||
| 18 | $client->request('GET', '/admin/dashboard'); |
||
| 19 | |||
| 20 | $this->assertContains('Dashboard', $client->getResponse()->getContent()); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function testAdminMediaListEmpty() |
||
| 24 | { |
||
| 25 | $this->loadFixtures([]); |
||
| 26 | |||
| 27 | $client = $this->getAuthenticatedClient(); |
||
| 28 | $client->request('GET', '/mediamonks/sonatamedia/media/list'); |
||
| 29 | |||
| 30 | $this->assertContains('No result', $client->getResponse()->getContent()); |
||
| 31 | } |
||
| 32 | } |
||
| 33 |