Completed
Pull Request — master (#461)
by Michael
13:08 queued 06:13
created

DefaultControllerTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testIndex() 0 8 1
1
<?php
2
/* Copyright (C) 2017 Michael Giesler
3
 *
4
 * This file is part of Dembelo.
5
 *
6
 * Dembelo is free software: you can redistribute it and/or modify
7
 * it under the terms of the GNU Affero General Public License as published by
8
 * the Free Software Foundation, either version 3 of the License, or
9
 * (at your option) any later version.
10
 *
11
 * Dembelo is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
 * GNU Affero General Public License 3 for more details.
15
 *
16
 * You should have received a copy of the GNU Affero General Public License 3
17
 * along with Dembelo. If not, see <http://www.gnu.org/licenses/>.
18
 */
19
20
namespace DembeloMain\IntegrationTests\Controller\Dashboard;
21
22
use DembeloMain\IntegrationTests\WebTestCase;
23
24
/**
25
 * @group integration
26
 */
27
class DefaultControllerTest extends WebTestCase
28
{
29
    /**
30
     * Tests the index action.
31
     */
32
    public function testIndex()
33
    {
34
        $client = static::createClient();
35
36
        $crawler = $client->request('GET', '/');
37
38
        $this->assertEquals(200, $client->getResponse()->getStatusCode());
39
        $this->assertTrue($crawler->filter('html:contains("was zu lesen")')->count() > 0);
40
    }
41
}
42