Completed
Push — master ( 3eb757...3bc7c8 )
by Oleg
03:46
created

GetResourcesCest::getResourcesSuccess()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace codecept\authorization;
4
5
use codecept\ApiTester;
6
use Codeception\Util\HttpCode;
7
8
class GetResourcesCest
9
{
10
    public function getResourcesSuccess(ApiTester $I)
0 ignored issues
show
Comprehensibility introduced by
Avoid variables with short names like $I. Configured minimum length is 3.

Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.

Loading history...
11
    {
12
        $I->wantTo('Get resources');
13
        $I->sendGet('/resources');
14
        $I->seeResponseCodeIs(HttpCode::OK);
15
        $I->seeResponseIsJson();
16
        $I->seeResponseJsonMatchesJsonPath('$.data.resources[*]');
17
    }
18
}
19