From 3139b34140693ebb9aa50cd9e0c4e3fe1ada9225 Mon Sep 17 00:00:00 2001 From: t0mmie Date: Wed, 5 Aug 2020 11:05:44 +0200 Subject: [PATCH] Set git user for unit test --- tests/Naneau/ProjectVersioner/Test/Reader/GitExecTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Naneau/ProjectVersioner/Test/Reader/GitExecTest.php b/tests/Naneau/ProjectVersioner/Test/Reader/GitExecTest.php index 8eb7adc..0142527 100644 --- a/tests/Naneau/ProjectVersioner/Test/Reader/GitExecTest.php +++ b/tests/Naneau/ProjectVersioner/Test/Reader/GitExecTest.php @@ -61,7 +61,9 @@ public function setUp(): void self::execWithDir(['rm -rf %s', 'mkdir %s']); self::execInDir([ 'touch testfile', - 'git init' + 'git init', + 'git config user.email "php@unit.test"', + 'git config user.name "PHPUnit"' ]); // Add commits, with matching tags