Checks if used types are declared or listed as dependencies.
1 | <?php |
||
2 | |||
3 | namespace hipanel\modules\server\tests\_support\Page; |
||
4 | |||
5 | use Codeception\Example; |
||
0 ignored issues
–
show
|
|||
6 | use hipanel\tests\_support\Page\Authenticated; |
||
7 | |||
8 | /** |
||
9 | * Class AbstractServerForm |
||
10 | * @package hipanel\modules\server\tests\_support\Page |
||
11 | */ |
||
12 | abstract class AbstractServerForm extends Authenticated |
||
13 | { |
||
14 | /** |
||
15 | * @param Example $data |
||
16 | * @return AbstractServerForm |
||
17 | * @throws \Exception |
||
18 | */ |
||
19 | abstract public function fillForm(Example $data); |
||
20 | |||
21 | /** |
||
22 | * @return AbstractServerForm |
||
23 | * @throws \Codeception\Exception\ModuleException |
||
24 | */ |
||
25 | public function submitForm(): self |
||
26 | { |
||
27 | $this->tester->pressButton('Save'); |
||
28 | $this->tester->waitForPageUpdate(); |
||
29 | |||
30 | return $this; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return AbstractServerForm |
||
35 | * @throws \Codeception\Exception\ModuleException |
||
36 | */ |
||
37 | public function hasNotErrors(): self |
||
38 | { |
||
39 | $this->tester->waitForPageUpdate(); |
||
40 | $this->tester->dontSeeElement("//*[contains(@class, 'has-error')]"); |
||
41 | |||
42 | return $this; |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @return AbstractServerForm |
||
47 | */ |
||
48 | public function hasErrors(): self |
||
49 | { |
||
50 | $this->tester->seeElement("//*[contains(@class, 'has-error')]"); |
||
51 | |||
52 | return $this; |
||
53 | } |
||
54 | } |
||
55 |
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