diff --git a/tests/Feature/PluginSyncServiceTest.php b/tests/Feature/PluginSyncServiceTest.php index 5c23c5cf..8e43fd50 100644 --- a/tests/Feature/PluginSyncServiceTest.php +++ b/tests/Feature/PluginSyncServiceTest.php @@ -131,11 +131,11 @@ public function test_sync_does_not_read_default_branch_when_release_discovery_fa ]); $this->assertFalse((new PluginSyncService)->sync($plugin)); - Log::shouldHaveReceived('warning')->once()->with( + Log::shouldHaveReceived('warning')->with( '[PluginSync] Could not discover latest release', \Mockery::on(fn (array $context): bool => $context['plugin_id'] === $plugin->id && str_contains($context['error'], '403')), - ); + )->once(); $this->assertSame('Existing documentation', $plugin->fresh()->readme_html); $this->assertNull($plugin->fresh()->last_synced_at); Http::assertNotSent(fn (Request $request): bool => str_contains($request->url(), '/contents/'));