Completed
Push — develop ( 48980c...453fcc )
by Marek
11:19
created

ApplicationAvailabilityCest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A _before() 0 4 1
A accessGuestPages() 0 6 1
1
<?php
2
namespace AppBundle;
3
4
use AppBundle\FunctionalTester;
5
use Codeception\Example;
6
7
class ApplicationAvailabilityCest
8
{
9
    public function _before(FunctionalTester $I)
10
    {
11
        $I->followRedirects(false);
12
    }
13
14
    /**
15
     * @example {"url": "/login"}
16
     */
17
    public function accessGuestPages(FunctionalTester $I, Example $example)
18
    {
19
        $I->followRedirects(false);
20
        $I->amOnPage($example['url']);
21
        $I->seeResponseCodeIs(200);
22
    }
23
}
24