Skip to content

Commit

Permalink
break test cases out into separate tests.
Browse files Browse the repository at this point in the history
Co-authored-by: Phil Tyler <[email protected]>
  • Loading branch information
jazzsequence and pwtyler authored Jul 19, 2024
1 parent 2293f26 commit 9850c83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/phpunit/test-network.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
}

}

0 comments on commit 9850c83

Please sign in to comment.