Changeset 60666 for trunk/tests/phpunit/tests/admin/includesPlugin.php
- Timestamp:
- 08/26/2025 06:39:06 PM (7 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tests/phpunit/tests/admin/includesPlugin.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 1 # Configuration files with possibly sensitive information 2 # Files and folders related to build/test tools 3 # Files for local environment config 4 .claude 5 .env 6 .git 2 7 .htaccess 3 # Files and folders related to build/test tools 8 .phpcs.xml 4 9 .phpunit.result.cache 5 phpunit.xml 6 phpcs.xml 7 .phpcs.xml 10 /docker-compose.override.yml 11 artifacts 12 build 13 composer.lock 14 coverage 15 jsdoc 8 16 node_modules 9 17 npm-debug.log 10 build 18 packagehash.txt 19 phpcs.xml 20 phpunit.xml 21 vendor 11 22 wp-cli.local.yml 12 .git13 jsdoc14 composer.lock15 vendor16 packagehash.txt17 artifacts18 # Files for local environment config19 /docker-compose.override.yml20 .env21 coverage
-
- Property svn:ignore
-
trunk/tests/phpunit/tests/admin/includesPlugin.php
r60253 r60666 23 23 24 24 public function test_get_plugin_data() { 25 $data = get_plugin_data( DIR_TESTDATA . '/plugins/hello .php' );25 $data = get_plugin_data( DIR_TESTDATA . '/plugins/hello-dolly/hello.php' ); 26 26 27 27 $default_headers = array( … … 375 375 376 376 public function test_is_plugin_active_true() { 377 activate_plugin( 'hello .php' );378 $test = is_plugin_active( 'hello .php' );377 activate_plugin( 'hello-dolly/hello.php' ); 378 $test = is_plugin_active( 'hello-dolly/hello.php' ); 379 379 $this->assertTrue( $test ); 380 380 381 deactivate_plugins( 'hello .php' );381 deactivate_plugins( 'hello-dolly/hello.php' ); 382 382 } 383 383 384 384 public function test_is_plugin_active_false() { 385 deactivate_plugins( 'hello .php' );386 $test = is_plugin_active( 'hello .php' );385 deactivate_plugins( 'hello-dolly/hello.php' ); 386 $test = is_plugin_active( 'hello-dolly/hello.php' ); 387 387 $this->assertFalse( $test ); 388 388 } 389 389 390 390 public function test_is_plugin_inactive_true() { 391 deactivate_plugins( 'hello .php' );392 $test = is_plugin_inactive( 'hello .php' );391 deactivate_plugins( 'hello-dolly/hello.php' ); 392 $test = is_plugin_inactive( 'hello-dolly/hello.php' ); 393 393 $this->assertTrue( $test ); 394 394 } 395 395 396 396 public function test_is_plugin_inactive_false() { 397 activate_plugin( 'hello .php' );398 $test = is_plugin_inactive( 'hello .php' );397 activate_plugin( 'hello-dolly/hello.php' ); 398 $test = is_plugin_inactive( 'hello-dolly/hello.php' ); 399 399 $this->assertFalse( $test ); 400 400 401 deactivate_plugins( 'hello .php' );401 deactivate_plugins( 'hello-dolly/hello.php' ); 402 402 } 403 403 … … 406 406 */ 407 407 public function test_get_plugin_files_single() { 408 $name = 'hello .php';408 $name = 'hello-dolly/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 .php' ) );553 $this->assertFalse( is_network_only_plugin( 'hello-dolly/hello.php' ) ); 554 554 } 555 555 … … 571 571 */ 572 572 public function test_activate_plugins_single_no_array() { 573 $name = 'hello .php';573 $name = 'hello-dolly/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 .php';583 $name = 'hello-dolly/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.