Skip to content

Commit

Permalink
Updated TransientTest::test_get_transient_use_options_expired() met…
Browse files Browse the repository at this point in the history
…hod to match the expected filters when testing an expired transient
  • Loading branch information
GiuseppeArcifa committed Dec 4, 2024
1 parent 914bcf9 commit 5785af6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/phpunit/includes/Helpers/TransientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,12 @@ public function test_get_transient_use_options_expired(): void {
->with( $test_transient_name )
->andReturnTrue();

WP_Mock::expectFilter(
"transient_{$test_transient_name}",
false,
$test_transient_name
);

$result = Transient::get( $test_transient_name );

$this->assertFalse( $result );
Expand Down

0 comments on commit 5785af6

Please sign in to comment.