File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments