mirror of
https://github.com/opdavies/build-configs.git
synced 2025-09-05 19:05:33 +01:00
Pass the correct values to the next command in the
...chain
This commit is contained in:
parent
2b180e967c
commit
05f7c2b609
2 changed files with 3 additions and 3 deletions
|
@ -29,6 +29,6 @@ final class RemoveIgnoredFilesCommand
|
|||
return !collect($this->filenames)->contains($templateFile->name);
|
||||
});
|
||||
|
||||
return $next([$configurationDataDto, $filesToGenerate]);
|
||||
return $next([$configurationData, $configurationDataDto, $filesToGenerate]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,8 +18,8 @@ class RemoveIgnoredFilesCommandTest extends KernelTestCase
|
|||
$command = new RemoveIgnoredFilesCommand($filenamesToIgnore);
|
||||
|
||||
$command->execute([[], [], $filenamesToGenerate], function ($result) {
|
||||
self::assertCount(1, $result[1]);
|
||||
self::assertSame('phpcs.xml.dist', $result[1][0]->name);
|
||||
self::assertCount(1, $result[2]);
|
||||
self::assertSame('phpcs.xml.dist', $result[2][0]->name);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue