These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | use Page\Admin\OwnersPluginPage; |
||
4 | |||
5 | /** |
||
6 | * @group plugin |
||
7 | * @group plugin_uninstaller |
||
8 | */ |
||
9 | class EA09PluginUninstallerCest |
||
0 ignored issues
–
show
|
|||
10 | { |
||
11 | const ページタイトル = '#main .page-header'; |
||
12 | |||
13 | protected $plugins = []; |
||
14 | |||
15 | View Code Duplication | public function _before(\AcceptanceTester $I) |
|
16 | { |
||
17 | $fixtures = __DIR__.'/../_data/plugin_fixtures.php'; |
||
18 | if (file_exists($fixtures)) { |
||
19 | $this->plugins = require $fixtures; |
||
20 | } |
||
21 | $I->loginAsAdmin(); |
||
22 | } |
||
23 | |||
24 | public function _after(\AcceptanceTester $I) |
||
25 | { |
||
26 | } |
||
27 | |||
28 | public function plugin_プラグインアンインストール(\AcceptanceTester $I) |
||
29 | { |
||
30 | $I->wantTo('プラグインアンインストール'); |
||
31 | |||
32 | View Code Duplication | foreach ($this->plugins as $num => $plugin) { |
|
33 | |||
34 | // プラグイン無効化 |
||
35 | OwnersPluginPage::go($I)->無効にする($plugin['code']); |
||
36 | $I->see('プラグインを無効にしました。', OwnersPluginPage::$完了メッセージ); |
||
37 | } |
||
38 | |||
39 | View Code Duplication | foreach ($this->plugins as $num => $plugin) { |
|
40 | |||
41 | // プラグイン削除 |
||
42 | OwnersPluginPage::go($I)->削除($plugin['code']); |
||
43 | $I->see(' プラグインを削除しました。', OwnersPluginPage::$完了メッセージ); |
||
44 | } |
||
45 | } |
||
46 | } |
||
47 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.