Skip to content

Commit 3139b34

Browse files
committed
Set git user for unit test
1 parent 2df8f51 commit 3139b34

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/Naneau/ProjectVersioner/Test/Reader/GitExecTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ public function setUp(): void
6161
self::execWithDir(['rm -rf %s', 'mkdir %s']);
6262
self::execInDir([
6363
'touch testfile',
64-
'git init'
64+
'git init',
65+
'git config user.email "php@unit.test"',
66+
'git config user.name "PHPUnit"'
6567
]);
6668

6769
// Add commits, with matching tags

0 commit comments

Comments
 (0)