Skip to content

Commit ba27b7d

Browse files
Add info end-to-end test
1 parent e492101 commit ba27b7d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

tests/end-to-end/info.phpt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
--TEST--
2+
captainhook commit-msg
3+
--FILE--
4+
<?php
5+
define('CH_TEST_BIN', $_SERVER['CH_TEST_BIN'] ?? 'bin/captainhook');
6+
echo shell_exec(
7+
// call command without color
8+
CH_TEST_BIN . ' info --list-actions --no-ansi ' .
9+
// use e2e configuration
10+
'--configuration=tests/_files/e2e/config-ok.json'
11+
);
12+
--EXPECTF--
13+
commit-msg
14+
- \CaptainHook\App\Hook\Message\Action\Beams
15+
pre-push
16+
- echo foo
17+
pre-commit
18+
- echo foo
19+
prepare-commit-msg
20+
post-commit
21+
post-merge
22+
post-checkout
23+
post-rewrite
24+
post-change

0 commit comments

Comments
 (0)