We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce7febd commit bee9b6fCopy full SHA for bee9b6f
tests/Update/RecipePatcherTest.php
@@ -33,6 +33,13 @@ protected function setUp(): void
33
*/
34
public function testGeneratePatch(array $originalFiles, array $newFiles, string $expectedPatch)
35
{
36
+ $this->getFilesystem()->remove(FLEX_TEST_DIR);
37
+ $this->getFilesystem()->mkdir(FLEX_TEST_DIR);
38
+ // original files need to be present to avoid patcher thinking they were deleting and skipping patch
39
+ foreach ($originalFiles as $file => $contents) {
40
+ touch(FLEX_TEST_DIR.'/'.$file);
41
+ }
42
+
43
$patcher = new RecipePatcher(FLEX_TEST_DIR, $this->createMock(IOInterface::class));
44
45
$patch = $patcher->generatePatch($originalFiles, $newFiles);
0 commit comments