Test Failed
Branchmaster (10e90c)
by Alexey
03:40
created

ApplicationAvailabilityFunctionalTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 23
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testPageIsSuccessful() 0 7 1
A urlProvider() 0 9 1
1
<?php
2
3
namespace Skobkin\Bundle\PointToolsBundle\Tests;
4
5
6
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
7
8
class ApplicationAvailabilityFunctionalTest extends WebTestCase
9
{
10
    /**
11
     * @dataProvider urlProvider
12
     */
13
    public function testPageIsSuccessful($url)
14
    {
15
        $client = self::createClient();
16
        $client->request('GET', $url);
17
18
        $this->assertTrue($client->getResponse()->isSuccessful());
19
    }
20
21
    public function urlProvider()
22
    {
23
        return [
24
            ['/'],
25
            ['/users/top'],
26
            ['/events/last'],
27
            ['/user/testuser']
28
        ];
29
    }
30
}