Changeset 61006 for trunk/tests/phpunit/tests/admin/includesPlugin.php
- Timestamp:
- 10/21/2025 04:31:04 AM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/includesPlugin.php
r60666 r61006 23 23 24 24 public function test_get_plugin_data() { 25 $data = get_plugin_data( DIR_TESTDATA . '/plugins/hello -dolly/hello.php' );25 $data = get_plugin_data( DIR_TESTDATA . '/plugins/hello.php' ); 26 26 27 27 $default_headers = array( … … 375 375 376 376 public function test_is_plugin_active_true() { 377 activate_plugin( 'hello -dolly/hello.php' );378 $test = is_plugin_active( 'hello -dolly/hello.php' );377 activate_plugin( 'hello.php' ); 378 $test = is_plugin_active( 'hello.php' ); 379 379 $this->assertTrue( $test ); 380 380 381 deactivate_plugins( 'hello -dolly/hello.php' );381 deactivate_plugins( 'hello.php' ); 382 382 } 383 383 384 384 public function test_is_plugin_active_false() { 385 deactivate_plugins( 'hello -dolly/hello.php' );386 $test = is_plugin_active( 'hello -dolly/hello.php' );385 deactivate_plugins( 'hello.php' ); 386 $test = is_plugin_active( 'hello.php' ); 387 387 $this->assertFalse( $test ); 388 388 } 389 389 390 390 public function test_is_plugin_inactive_true() { 391 deactivate_plugins( 'hello -dolly/hello.php' );392 $test = is_plugin_inactive( 'hello -dolly/hello.php' );391 deactivate_plugins( 'hello.php' ); 392 $test = is_plugin_inactive( 'hello.php' ); 393 393 $this->assertTrue( $test ); 394 394 } 395 395 396 396 public function test_is_plugin_inactive_false() { 397 activate_plugin( 'hello -dolly/hello.php' );398 $test = is_plugin_inactive( 'hello -dolly/hello.php' );397 activate_plugin( 'hello.php' ); 398 $test = is_plugin_inactive( 'hello.php' ); 399 399 $this->assertFalse( $test ); 400 400 401 deactivate_plugins( 'hello -dolly/hello.php' );401 deactivate_plugins( 'hello.php' ); 402 402 } 403 403 … … 406 406 */ 407 407 public function test_get_plugin_files_single() { 408 $name = 'hello -dolly/hello.php';408 $name = 'hello.php'; 409 409 $this->assertSame( array( $name ), get_plugin_files( $name ) ); 410 410 } … … 551 551 */ 552 552 public function test_is_network_only_plugin_hello() { 553 $this->assertFalse( is_network_only_plugin( 'hello -dolly/hello.php' ) );553 $this->assertFalse( is_network_only_plugin( 'hello.php' ) ); 554 554 } 555 555 … … 571 571 */ 572 572 public function test_activate_plugins_single_no_array() { 573 $name = 'hello -dolly/hello.php';573 $name = 'hello.php'; 574 574 activate_plugins( $name ); 575 575 $this->assertTrue( is_plugin_active( $name ) ); … … 581 581 */ 582 582 public function test_activate_plugins_single_array() { 583 $name = 'hello -dolly/hello.php';583 $name = 'hello.php'; 584 584 activate_plugins( array( $name ) ); 585 585 $this->assertTrue( is_plugin_active( $name ) );
Note: See TracChangeset
for help on using the changeset viewer.