Skip to content

Commit f00f1d8

Browse files
committed
forgot last arg!
1 parent 0efaf13 commit f00f1d8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/Command/UpdateRecipesCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function testCommandUpdatesRecipe()
4646
@mkdir(FLEX_TEST_DIR);
4747
(new Process(['git', 'init'], FLEX_TEST_DIR))->mustRun();
4848
(new Process(['git', 'config', 'user.name', 'Unit test'], FLEX_TEST_DIR))->mustRun();
49-
(new Process(['git', 'config', 'user.email'], FLEX_TEST_DIR))->mustRun();
49+
(new Process(['git', 'config', 'user.email', ''], FLEX_TEST_DIR))->mustRun();
5050

5151
@mkdir(FLEX_TEST_DIR.'/bin');
5252

tests/Update/RecipePatcherTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public function testApplyPatch(array $filesCurrentlyInApp, RecipePatch $recipePa
201201
{
202202
(new Process(['git', 'init'], FLEX_TEST_DIR))->mustRun();
203203
(new Process(['git', 'config', 'user.name', 'Unit test'], FLEX_TEST_DIR))->mustRun();
204-
(new Process(['git', 'config', 'user.email'], FLEX_TEST_DIR))->mustRun();
204+
(new Process(['git', 'config', 'user.email', ''], FLEX_TEST_DIR))->mustRun();
205205

206206
foreach ($filesCurrentlyInApp as $file => $contents) {
207207
$path = FLEX_TEST_DIR.'/'.$file;
@@ -316,7 +316,7 @@ public function testIntegration(bool $useNullForMissingFiles)
316316
$files = $this->getFilesForPatching();
317317
(new Process(['git', 'init'], FLEX_TEST_DIR))->mustRun();
318318
(new Process(['git', 'config', 'user.name', 'Unit test'], FLEX_TEST_DIR))->mustRun();
319-
(new Process(['git', 'config', 'user.email'], FLEX_TEST_DIR))->mustRun();
319+
(new Process(['git', 'config', 'user.email', ''], FLEX_TEST_DIR))->mustRun();
320320

321321
$startingFiles = [
322322
'.env' => $files['dot_env_clean']['in_app'],
@@ -545,7 +545,7 @@ private function generatePatchData(string $filename, ?string $start, ?string $en
545545
@mkdir($dir);
546546
(new Process(['git', 'init'], $dir))->mustRun();
547547
(new Process(['git', 'config', 'user.name', 'Unit test'], $dir))->mustRun();
548-
(new Process(['git', 'config', 'user.email'], $dir))->mustRun();
548+
(new Process(['git', 'config', 'user.email', ''], $dir))->mustRun();
549549

550550
if (!file_exists(\dirname($dir.'/'.$filename))) {
551551
@mkdir(\dirname($dir.'/'.$filename), 0777, true);

0 commit comments

Comments
 (0)