Skip to content

Commit

Permalink
Update filter
Browse files Browse the repository at this point in the history
  • Loading branch information
mukeshpanchal27 authored Oct 9, 2023
1 parent 4ede3e4 commit 3770c8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/phpunit/tests/option/networkOption.php
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ static function () use ( $default_value ) {
*/
public function test_update_network_option_with_pre_filter_adds_missing_option() {
// Force a return value of integer 0.
add_filter( 'default_site_option_foo', '__return_zero' );
add_filter( 'pre_site_option_foo', '__return_zero' );

/*
* This should succeed, since the 'foo' option does not exist in the database.
Expand Down Expand Up @@ -786,7 +786,7 @@ public function test_update_network_option_with_pre_filter_updates_option_with_d
* @covers ::update_network_option
*/
public function test_update_network_option_maintains_pre_filters() {
add_filter( 'default_site_option_foo', '__return_zero' );
add_filter( 'pre_site_option_foo', '__return_zero' );
update_network_option( null, 'foo', 0 );

// Assert that the filter is still present.
Expand Down

0 comments on commit 3770c8c

Please sign in to comment.