1 | <?php |
||
2 | |||
3 | namespace tests\codeception\site\_pages; |
||
4 | |||
5 | use \yii\codeception\BasePage; |
||
0 ignored issues
–
show
|
|||
6 | |||
7 | /** |
||
8 | * Represents signup page |
||
9 | * @property \codeception_site\AcceptanceTester|\codeception_site\FunctionalTester $actor |
||
10 | */ |
||
11 | class SignupPage extends BasePage |
||
12 | { |
||
13 | |||
14 | public $route = 'site/signup'; |
||
15 | |||
16 | /** |
||
17 | * @param array $signupData |
||
18 | */ |
||
19 | public function submit(array $signupData) |
||
20 | { |
||
21 | foreach ($signupData as $field => $value) { |
||
22 | $inputType = $field === 'body' ? 'textarea' : 'input'; |
||
23 | $this->actor->fillField($inputType . '[name="SignupForm[' . $field . ']"]', $value); |
||
24 | } |
||
25 | $this->actor->click('signup-button'); |
||
26 | } |
||
27 | } |
||
28 |
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