Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
koertho committed Dec 9, 2024
1 parent 4822d6a commit fda9684
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/Command/EntityFinderCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
use Doctrine\DBAL\Connection;
use HeimrichHannot\UtilsBundle\Command\EntityFinderCommand;
use HeimrichHannot\UtilsBundle\EntityFinder\EntityFinderHelper;
use HeimrichHannot\UtilsBundle\EntityFinder\Finder;
use HeimrichHannot\UtilsBundle\Tests\AbstractUtilsTestCase;
use HeimrichHannot\UtilsBundle\Util\Utils;
use PHPUnit\Framework\MockObject\MockBuilder;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;

Expand All @@ -23,8 +25,10 @@ public function getTestInstance(array $parameters = [], ?MockBuilder $mockBuilde
$eventDispatcher = $parameters['eventDispatcher'] ?? $this->createMock(EventDispatcherInterface::class);
$connection = $parameters['connection'] ?? $this->createMock(Connection::class);
$entityFinderHelper = $parameters['entityFinderHelper'] ?? $this->createMock(EntityFinderHelper::class);
$utils = $parameters['utils'] ?? $this->createMock(Utils::class);
$finder = $parameters['finder'] ?? $this->createMock(Finder::class);

return new EntityFinderCommand($contaoFramework, $eventDispatcher, $connection, $entityFinderHelper);
return new EntityFinderCommand($contaoFramework, $eventDispatcher, $connection, $entityFinderHelper, $utils, $finder);
}

public function testInstantiation()
Expand Down

0 comments on commit fda9684

Please sign in to comment.