Changeset 60666 for trunk/tests/phpunit/tests/multisite/network.php
- Timestamp:
- 08/26/2025 06:39:06 PM (4 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tests/phpunit/tests/multisite/network.php (modified) (4 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/multisite/network.php
r60148 r60666 270 270 271 271 public function test_active_network_plugins() { 272 $path = 'hello .php';272 $path = 'hello-dolly/hello.php'; 273 273 274 274 // Local activate, should be invisible for the network. … … 282 282 activate_plugin( $path, '', true ); // Enable the plugin for all sites in the network. 283 283 $active_plugins = wp_get_active_network_plugins(); 284 $this->assertSame( array( WP_PLUGIN_DIR . '/hello .php' ), $active_plugins );284 $this->assertSame( array( WP_PLUGIN_DIR . '/hello-dolly/hello.php' ), $active_plugins ); 285 285 286 286 // Deactivate the plugin. … … 301 301 */ 302 302 public function test_duplicate_network_active_plugin() { 303 $path = 'hello .php';303 $path = 'hello-dolly/hello.php'; 304 304 $mock = new MockAction(); 305 305 add_action( 'activate_' . $path, array( $mock, 'action' ) ); … … 321 321 322 322 public function test_is_plugin_active_for_network_true() { 323 activate_plugin( 'hello .php', '', true );324 $this->assertTrue( is_plugin_active_for_network( 'hello .php' ) );323 activate_plugin( 'hello-dolly/hello.php', '', true ); 324 $this->assertTrue( is_plugin_active_for_network( 'hello-dolly/hello.php' ) ); 325 325 } 326 326 327 327 public function test_is_plugin_active_for_network_false() { 328 deactivate_plugins( 'hello .php', false, true );329 $this->assertFalse( is_plugin_active_for_network( 'hello .php' ) );328 deactivate_plugins( 'hello-dolly/hello.php', false, true ); 329 $this->assertFalse( is_plugin_active_for_network( 'hello-dolly/hello.php' ) ); 330 330 } 331 331
Note: See TracChangeset
for help on using the changeset viewer.