Skip to content

Commit

Permalink
mock rocket_bypass()
Browse files Browse the repository at this point in the history
  • Loading branch information
Tabrisrp committed Jul 12, 2024
1 parent 8693b4b commit 7b1377b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace WP_Rocket\Tests\Unit\inc\Engine\Media\Lazyload\Subscriber;

use Mockery;
use Brain\Monkey\Filters;
use Brain\Monkey\{Filters, Functions};
use WP_Rocket\Dependencies\RocketLazyload\Assets;
use WP_Rocket\Dependencies\RocketLazyload\Image;
use WP_Rocket\Dependencies\RocketLazyload\Iframe;
Expand Down Expand Up @@ -38,6 +38,8 @@ public function setUp(): void {
* @dataProvider configTestData
*/
public function testShouldReturnExpected( $config, $expected ) {
Functions\when( 'rocket_bypass' )->justReturn( false );

$this->options->shouldReceive( 'get' )
->atMost()
->once()
Expand Down

0 comments on commit 7b1377b

Please sign in to comment.