@@ -200,6 +200,8 @@ public function testGeneratePatchOnDeletedFile()
200
200
public function testApplyPatch (array $ filesCurrentlyInApp , RecipePatch $ recipePatch , array $ expectedFiles , bool $ expectedConflicts )
201
201
{
202
202
(new Process (['git ' , 'init ' ], FLEX_TEST_DIR ))->mustRun ();
203
+ (new Process (['git ' , 'config ' , 'user.name ' , 'Unit test ' ], FLEX_TEST_DIR ))->mustRun ();
204
+ (new Process (['git ' , 'config ' , 'user.email ' ], FLEX_TEST_DIR ))->mustRun ();
203
205
204
206
foreach ($ filesCurrentlyInApp as $ file => $ contents ) {
205
207
$ path = FLEX_TEST_DIR .'/ ' .$ file ;
@@ -313,6 +315,8 @@ public function testIntegration(bool $useNullForMissingFiles)
313
315
{
314
316
$ files = $ this ->getFilesForPatching ();
315
317
(new Process (['git ' , 'init ' ], FLEX_TEST_DIR ))->mustRun ();
318
+ (new Process (['git ' , 'config ' , 'user.name ' , 'Unit test ' ], FLEX_TEST_DIR ))->mustRun ();
319
+ (new Process (['git ' , 'config ' , 'user.email ' ], FLEX_TEST_DIR ))->mustRun ();
316
320
317
321
$ startingFiles = [
318
322
'.env ' => $ files ['dot_env_clean ' ]['in_app ' ],
@@ -540,6 +544,8 @@ private function generatePatchData(string $filename, ?string $start, ?string $en
540
544
}
541
545
@mkdir ($ dir );
542
546
(new Process (['git ' , 'init ' ], $ dir ))->mustRun ();
547
+ (new Process (['git ' , 'config ' , 'user.name ' , 'Unit test ' ], $ dir ))->mustRun ();
548
+ (new Process (['git ' , 'config ' , 'user.email ' ], $ dir ))->mustRun ();
543
549
544
550
if (!file_exists (\dirname ($ dir .'/ ' .$ filename ))) {
545
551
@mkdir (\dirname ($ dir .'/ ' .$ filename ), 0777 , true );
0 commit comments