Skip to content

Commit

Permalink
update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
vraja-pro committed Oct 17, 2023
1 parent 928e33d commit afa79c6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ public function test_check_option_stripcategorybase_changed() {
->with( 'term', 'category', Indexing_Reasons::REASON_CATEGORY_BASE_PREFIX )
->once();

Monkey\Functions\expect( 'update_option' )
->once()
->with( 'rewrite_rules', '' );

$this->instance->check_option( [ 'stripcategorybase' => 0 ], [ 'stripcategorybase' => 1 ] );
}
}

0 comments on commit afa79c6

Please sign in to comment.