Completed
Push — master ( 7de777...9be641 )
by
unknown
11:28
created

AppTestAbstract::testAdminDashboard()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace MediaMonks\SonataMediaBundle\Tests\Functional;
4
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