Skip to content

Commit

Permalink
Add a test for RunCommand (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
villfa authored Jan 29, 2021
1 parent 2b25c41 commit 7080ffa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/Integration/Command/RunCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,11 @@ public function it_throws_for_invalid_configuration(): void
'--configuration' => 'not a valid configuration file',
]);
}

/** @test */
public function it_throws_when_no_directory(): void
{
$this->expectException(InvalidArgumentException::class);
$this->commandTester->execute(['paths' => []]);
}
}

0 comments on commit 7080ffa

Please sign in to comment.