Changeset 61006 for trunk/tests/phpunit/tests/multisite/network.php
- Timestamp:
- 10/21/2025 04:31:04 AM (3 months ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/multisite/network.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/multisite/network.php
r60729 r61006 274 274 275 275 public function test_active_network_plugins() { 276 $path = 'hello -dolly/hello.php';276 $path = 'hello.php'; 277 277 278 278 // Local activate, should be invisible for the network. … … 286 286 activate_plugin( $path, '', true ); // Enable the plugin for all sites in the network. 287 287 $active_plugins = wp_get_active_network_plugins(); 288 $this->assertSame( array( WP_PLUGIN_DIR . '/hello -dolly/hello.php' ), $active_plugins );288 $this->assertSame( array( WP_PLUGIN_DIR . '/hello.php' ), $active_plugins ); 289 289 290 290 // Deactivate the plugin. … … 305 305 */ 306 306 public function test_duplicate_network_active_plugin() { 307 $path = 'hello -dolly/hello.php';307 $path = 'hello.php'; 308 308 $mock = new MockAction(); 309 309 add_action( 'activate_' . $path, array( $mock, 'action' ) ); … … 325 325 326 326 public function test_is_plugin_active_for_network_true() { 327 activate_plugin( 'hello -dolly/hello.php', '', true );328 $this->assertTrue( is_plugin_active_for_network( 'hello -dolly/hello.php' ) );327 activate_plugin( 'hello.php', '', true ); 328 $this->assertTrue( is_plugin_active_for_network( 'hello.php' ) ); 329 329 } 330 330 331 331 public function test_is_plugin_active_for_network_false() { 332 deactivate_plugins( 'hello -dolly/hello.php', false, true );333 $this->assertFalse( is_plugin_active_for_network( 'hello -dolly/hello.php' ) );332 deactivate_plugins( 'hello.php', false, true ); 333 $this->assertFalse( is_plugin_active_for_network( 'hello.php' ) ); 334 334 } 335 335
Note: See TracChangeset
for help on using the changeset viewer.