Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 52b74f24

Přidáno uživatelem Martin Sebela před více než 3 roky(ů)

Re #8159 - full height clickable dropdown dataset, fixed tests

Zobrazit rozdíly:

website/tests/Controller/HeatmapControllerTest.php
31 31
        $this->assertTrue($client->getResponse()->isSuccessful());
32 32
    }
33 33

  
34
    /*     public function testFormSubmit() {
35
            $client = static::createClient();
36
            $client->request('GET', '/heatmap');
37

  
38
            $crawler = $client->submitForm('Potvrdit výběr');
39
            $this->assertTrue($client->getResponse()->isSuccessful());
40

  
41
            $crawler = $client->submitForm(
42
                'Potvrdit výběr',
43
                [
44
                    'date' => '2019-04-11',
45
                    'time' => '0',
46
                    'type[1]' => 'JIS',
47
                ]
48
            );
49
            $this->assertTrue($client->getResponse()->isSuccessful());
50
        }
51

  
52
        public function testFormSubmitInvalid() {
53
            $client = static::createClient();
54
            $client->request('GET', '/heatmap');
55

  
56
            $crawler = $client->submitForm(
57
                'Potvrdit výběr',
58
                [
59
                    'date' => '11-04-2019',
60
                    'time' => '0',
61
                    'type[1]' => 'JIS',
62
                ]
63
            );
64
            $this->assertTrue($client->getResponse()->isSuccessful());
65
        } */
34
    public function testFormSubmit() {
35
        $client = static::createClient();
36
        $client->request('GET', '/heatmap');
37

  
38
        $crawler = $client->submitForm('btn-update-heatmap');
39
        $this->assertTrue($client->getResponse()->isSuccessful());
40

  
41
        $crawler = $client->submitForm(
42
            'btn-update-heatmap',
43
            [
44
                'date' => '2019-04-11',
45
                'time' => '0',
46
                'type[1]' => 'JIS',
47
            ]
48
        );
49
        $this->assertTrue($client->getResponse()->isSuccessful());
50
    }
51

  
52
    public function testFormSubmitInvalid() {
53
        $client = static::createClient();
54
        $client->request('GET', '/heatmap');
55

  
56
        $crawler = $client->submitForm(
57
            'btn-update-heatmap',
58
            [
59
                'date' => '11-04-2019',
60
                'time' => '0',
61
                'type[1]' => 'JIS',
62
            ]
63
        );
64
        $this->assertTrue($client->getResponse()->isSuccessful());
65
    }
66 66

  
67 67
    public function testOpenDataAjax() {
68 68
        $client = static::createClient();

Také k dispozici: Unified diff