Changeset 54301
- Timestamp:
- 09/25/2022 02:41:22 AM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-plugins-controller.php
r52138 r54301 87 87 $this->rmdir( WP_PLUGIN_DIR . '/test-plugin' ); 88 88 } 89 89 90 if ( file_exists( DIR_TESTDATA . '/link-manager.zip' ) ) { 90 91 unlink( DIR_TESTDATA . '/link-manager.zip' ); 92 93 94 95 91 96 } 92 97 … … 370 375 */ 371 376 public function test_create_item() { 372 if ( isset( get_plugins()['link-manager/link-manager.php'] ) ) {373 delete_plugins( array( 'link-manager/link-manager.php' ) );374 }375 376 377 wp_set_current_user( self::$super_admin ); 377 378 $this->setup_plugin_download(); … … 390 391 */ 391 392 public function test_create_item_and_activate() { 392 if ( isset( get_plugins()['link-manager/link-manager.php'] ) ) {393 delete_plugins( array( 'link-manager/link-manager.php' ) );394 }395 396 393 wp_set_current_user( self::$super_admin ); 397 394 $this->setup_plugin_download(); … … 416 413 */ 417 414 public function test_create_item_and_activate_errors_if_no_permission_to_activate_plugin() { 418 if ( isset( get_plugins()['link-manager/link-manager.php'] ) ) {419 delete_plugins( array( 'link-manager/link-manager.php' ) );420 }421 422 415 wp_set_current_user( self::$super_admin ); 423 416 $this->setup_plugin_download(); … … 442 435 */ 443 436 public function test_create_item_and_network_activate_rejected_if_not_multisite() { 444 if ( isset( get_plugins()['link-manager/link-manager.php'] ) ) {445 delete_plugins( array( 'link-manager/link-manager.php' ) );446 }447 448 437 wp_set_current_user( self::$super_admin ); 449 438 $this->setup_plugin_download(); … … 466 455 */ 467 456 public function test_create_item_and_network_activate() { 468 if ( isset( get_plugins()['link-manager/link-manager.php'] ) ) {469 delete_plugins( array( 'link-manager/link-manager.php' ) );470 }471 472 457 wp_set_current_user( self::$super_admin ); 473 458 $this->setup_plugin_download();
Note: See TracChangeset
for help on using the changeset viewer.