These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace hipanel\modules\hosting\tests\acceptance\admin; |
||
4 | |||
5 | use hipanel\helpers\Url; |
||
6 | use hipanel\tests\_support\Page\IndexPage; |
||
7 | use hipanel\tests\_support\Page\Widget\Input\Input; |
||
8 | use hipanel\tests\_support\Page\Widget\Input\Select2; |
||
9 | use hipanel\tests\_support\Step\Acceptance\Admin; |
||
10 | |||
11 | View Code Duplication | class ServicesCest |
|
12 | { |
||
13 | /** |
||
14 | * @var IndexPage |
||
15 | */ |
||
16 | private $index; |
||
17 | |||
18 | public function _before(Admin $I) |
||
19 | { |
||
20 | $this->index = new IndexPage($I); |
||
21 | } |
||
22 | |||
23 | public function ensureIndexPageWorks(Admin $I) |
||
24 | { |
||
25 | $I->login(); |
||
26 | $I->needPage(Url::to('@service')); |
||
27 | $I->see('Services', 'h1'); |
||
28 | $this->ensureICanSeeAdvancedSearchBox($I); |
||
29 | $this->ensureICanSeeBulkSearchBox(); |
||
30 | } |
||
31 | |||
32 | private function ensureICanSeeAdvancedSearchBox(Admin $I) |
||
33 | { |
||
34 | $this->index->containsFilters([ |
||
35 | Input::asAdvancedSearch($I, 'Name'), |
||
0 ignored issues
–
show
|
|||
36 | Select2::asAdvancedSearch($I, 'Server'), |
||
0 ignored issues
–
show
The method
asAdvancedSearch() does not seem to exist on object<hipanel\tests\_su...e\Widget\Input\Select2> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
37 | Select2::asAdvancedSearch($I, 'Client'), |
||
0 ignored issues
–
show
The method
asAdvancedSearch() does not seem to exist on object<hipanel\tests\_su...e\Widget\Input\Select2> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
38 | Select2::asAdvancedSearch($I, 'Reseller'), |
||
0 ignored issues
–
show
The method
asAdvancedSearch() does not seem to exist on object<hipanel\tests\_su...e\Widget\Input\Select2> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
39 | Select2::asAdvancedSearch($I, 'Soft'), |
||
0 ignored issues
–
show
The method
asAdvancedSearch() does not seem to exist on object<hipanel\tests\_su...e\Widget\Input\Select2> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
40 | Select2::asAdvancedSearch($I, 'Status'), |
||
0 ignored issues
–
show
The method
asAdvancedSearch() does not seem to exist on object<hipanel\tests\_su...e\Widget\Input\Select2> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
41 | ]); |
||
42 | } |
||
43 | |||
44 | private function ensureICanSeeBulkSearchBox() |
||
45 | { |
||
46 | $this->index->containsColumns([ |
||
47 | 'Reseller', |
||
48 | 'Client', |
||
49 | 'Server', |
||
50 | 'Object', |
||
51 | 'IP', |
||
52 | 'Soft', |
||
53 | 'Status', |
||
54 | ]); |
||
55 | } |
||
56 | } |
||
57 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.