Skip to content

Commit 59082ad

Browse files
simonhampclaude
andcommitted
Fix CI: update test to match new ReviewPluginRepository early-return behavior
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 86abf25 commit 59082ad

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

tests/Feature/Jobs/ReviewPluginRepositoryTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,16 +221,18 @@ public function it_stores_results_in_review_checks_and_stamps_reviewed_at(): voi
221221
}
222222

223223
/** @test */
224-
public function it_returns_empty_array_when_no_repository_url(): void
224+
public function it_returns_failed_checks_when_no_repository_url(): void
225225
{
226226
$plugin = Plugin::factory()->create([
227227
'repository_url' => null,
228228
]);
229229

230230
$checks = (new ReviewPluginRepository($plugin))->handle();
231231

232-
$this->assertEmpty($checks);
233-
$this->assertNull($plugin->fresh()->reviewed_at);
232+
$this->assertFalse($checks['has_license_file']);
233+
$this->assertFalse($checks['has_release_version']);
234+
$this->assertNotNull($plugin->fresh()->reviewed_at);
235+
$this->assertNotNull($plugin->fresh()->review_checks);
234236
}
235237

236238
/** @test */

0 commit comments

Comments
 (0)