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

GetResourcesCest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getResourcesSuccess() 0 8 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