From 9850c833bad92dd1efc2b4548e43eee12185e494 Mon Sep 17 00:00:00 2001 From: Chris Reynolds Date: Fri, 19 Jul 2024 12:50:59 -0600 Subject: [PATCH] break test cases out into separate tests. Co-authored-by: Phil Tyler --- tests/phpunit/test-network.php | 3 +++ 1 file changed, 3 insertions(+) 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() ); } + }