Projekt

Obecné

Profil

Stáhnout (1021 Bajtů) Statistiky
| Větev: | Revize:
1
<?php
2

    
3
namespace App\Tests\Controller;
4

    
5
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
6

    
7
class HomeControllerTest extends WebTestCase {
8
    public function testMainPage() {
9
        $client = static::createClient();
10
        $client->request('GET', '/');
11
        $this->assertTrue($client->getResponse()->isSuccessful());
12
    }
13

    
14
    // public function provideLinks() {
15
    //     return [
16
    //         ['Logo Západočeské univerzity v Plzni'],
17
    //         ['Heatmap.ZČU'],
18
    //         ['Život na ZČU během dne'],
19
    //         ['Hledání anomálií'],
20
    //         ['O projektu'],
21
    //         ['Zobrazit heatmapu'],
22
    //         ['Vyzkoušet heatmapu'],
23
    //     ];
24
    // }
25

    
26
    // /**
27
    //  * @dataProvider provideLinks
28
    //  */
29
    // public function testLinks($link) {
30
    //     $client = static::createClient();
31
    //     $crawler = $client->request('GET', '/');
32
    //     $client->clickLink($link);
33
    //     $this->assertTrue($client->getResponse()->isSuccessful());
34
    // }
35
}
(2-2/2)