Skip to content

Commit

Permalink
Fix WorkerCommandLineFactoryTest (#3811)
Browse files Browse the repository at this point in the history
* Fix WorkerCommandLineFactoryTest

* Update WorkerCommandLineFactoryTest.php
  • Loading branch information
staabm committed May 12, 2023
1 parent 42c9705 commit 7da67ee
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ public static function provideData(): Iterator

private function prepareProcessCommandDefinition(): InputDefinition
{
$inputDefinition = $this->processCommand->getDefinition();
// clone the object as we should not modify a object taken from the DI container
$inputDefinition = clone $this->processCommand->getDefinition();

// not sure why, but the 1st argument "command" is missing; this is needed for a command name
$arguments = $inputDefinition->getArguments();
Expand Down

0 comments on commit 7da67ee

Please sign in to comment.