diff --git a/tests/phpunit/test-network.php b/tests/phpunit/test-network.php index 3e962a0..2d82ace 100644 --- a/tests/phpunit/test-network.php +++ b/tests/phpunit/test-network.php @@ -77,8 +77,11 @@ public function test_pantheon_remove_network_setup() { public function test_disable_subdirectory_custom_wp_content_warning() { // Test the default condition. $this->assertNotEmpty( pantheon_get_subdirectory_networks_message() ); + } + public function test_disable_subdirectory_custom_wp_content_warning_filtered() { add_filter( 'pantheon.enable_subdirectory_networks_message', '__return_false' ); $this->assertEmpty( pantheon_get_subdirectory_networks_message() ); } + }