Skip to content

Commit a5d081d

Browse files
committed
Improve HookCommandTest
1 parent 840de52 commit a5d081d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/HookCommandTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function it_tests_hooks_that_exist()
2424
/**
2525
* @test
2626
*/
27-
public function it_not_continue_if_previous_hook_fail()
27+
public function it_terminates_if_previous_hook_fails()
2828
{
2929
$hook = [
3030
'pre-commit' => [
@@ -38,5 +38,6 @@ public function it_not_continue_if_previous_hook_fail()
3838

3939
$commandTester->execute([]);
4040
$this->assertContains('execution-error', $commandTester->getDisplay());
41+
$this->assertNotContains('before-commit', $commandTester->getDisplay());
4142
}
4243
}

0 commit comments

Comments
 (0)