Skip to content

Commit 76731d0

Browse files
committed
Don't try to remove drop-in plugin in tests
1 parent 15b9b52 commit 76731d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/ITTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ trait ITTrait {
99
public function setUp(): void {
1010
$plugins = $this->wpCli( [ 'plugin', 'list', '--format=json' ] )['final_line'];
1111
foreach ( json_decode( (string) $plugins, true ) as $plugin ) {
12-
if ( $plugin['name'] !== 'staticweb-deploy' ) {
12+
if ( $plugin['name'] !== 'staticweb-deploy' && $plugin['status'] !== 'dropin' ) {
1313
$this->wpCli( [ 'plugin', 'deactivate', $plugin['name'] ] );
1414
$this->wpCli( [ 'plugin', 'uninstall', $plugin['name'] ] );
1515
}

0 commit comments

Comments
 (0)