Issues (213)

tests/_support/Page/Hub/View.php (1 issue)

1
<?php
2
3
namespace hipanel\modules\server\tests\_support\Page\Hub;
4
5
use Codeception\Example;
0 ignored issues
show
The type Codeception\Example was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use hipanel\tests\_support\Page\Authenticated;
7
8
class View extends Authenticated
9
{
10
    /**
11
     * @param string $action
12
     */
13
    public function clickAction(string $action): void
14
    {
15
        $selector = "//div[contains(@class, 'box-widget')]//ul//" .
16
                    "a[contains(text(), '{$action}')]";
17
        $this->tester->click($selector);
18
    }
19
20
    /**
21
     * @param Example $data
22
     */
23
    public function check(Example $data): void
24
    {
25
        foreach ($data as $field => $value) {
26
            if ($value) {
27
                $this->tester->see($value);
28
            }
29
        }
30
    }
31
}
32