Total Complexity | 6 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class ExampleTest extends TestCase |
||
12 | { |
||
13 | use RefreshDatabase; |
||
14 | |||
15 | private $baseUri = 'api/v1/'; |
||
16 | private $resource = 'examples'; |
||
17 | private $uri; |
||
18 | |||
19 | public function __construct() |
||
20 | { |
||
21 | $this->uri = $this->baseUri.Str::plural($this->resource); |
||
22 | |||
23 | parent::__construct(); |
||
24 | } |
||
25 | |||
26 | public function testIndex() |
||
27 | { |
||
28 | $this->get("{$this->uri}")->assertStatus(StatusCodeEnum::HTTP_OK); |
||
29 | } |
||
30 | |||
31 | public function testStore() |
||
35 | } |
||
36 | |||
37 | public function testShow() |
||
42 | } |
||
43 | |||
44 | public function testUpdate() |
||
49 | } |
||
50 | |||
51 | public function testDestroy() |
||
56 | } |
||
57 | } |
||
58 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths