Skip to content

Commit

Permalink
Add missing argument to integration test 🔧
Browse files Browse the repository at this point in the history
  • Loading branch information
Khadreal committed Jun 5, 2024
1 parent 3ffaa5a commit 9450d7b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

namespace WP_Rocket\Tests\Integration\inc\Engine\Media\AboveTheFold\WarmUp\Subscriber;

use WP_Rocket\Engine\Media\AboveTheFold\WarmUp\Queue;
use WP_Rocket\Tests\Integration\TestCase;
use Brain\Monkey\Functions;
use WP_Rocket\Engine\License\API\User;
Expand Down Expand Up @@ -39,7 +40,9 @@ public function testShouldDoExpected( $config, $expected ) {
$options = Mockery::mock(Options_Data::class);
$api_client = Mockery::mock(APIClient::class);
$user = Mockery::mock(User::class);
$controller = Mockery::mock(Controller::class, [$context, $options, $api_client, $user])->makePartial();
$queue = Mockery::mock(Queue::class);

$controller = Mockery::mock(Controller::class, [$context, $options, $api_client, $user, $queue])->makePartial();

$options->shouldReceive('get')
->with('cache_mobile', 0)
Expand Down

0 comments on commit 9450d7b

Please sign in to comment.