From cfb1be8c76620d4e0fc7310631e3a95692c78c9a Mon Sep 17 00:00:00 2001 From: Eric Gesemann Date: Fri, 16 Feb 2024 14:08:32 +0100 Subject: [PATCH] update ModelUtilTest.php --- tests/Util/ModelUtilTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/Util/ModelUtilTest.php b/tests/Util/ModelUtilTest.php index d59e4899..a6796819 100644 --- a/tests/Util/ModelUtilTest.php +++ b/tests/Util/ModelUtilTest.php @@ -11,6 +11,7 @@ use Contao\ContentModel; use Contao\Controller; use Contao\CoreBundle\Framework\Adapter; +use Contao\CoreBundle\InsertTag\InsertTagParser; use Contao\Model; use Contao\PageModel; use Contao\System; @@ -22,7 +23,6 @@ use HeimrichHannot\UtilsBundle\Util\ModelUtil; use PHPUnit\Framework\MockObject\MockBuilder; use PHPUnit\Framework\MockObject\MockObject; -use function Clue\StreamFilter\fun; class ModelUtilTest extends AbstractUtilsTestCase { @@ -40,7 +40,9 @@ public function getTestInstance(array $parameters = [], ?MockBuilder $mockBuilde Model::class => $this->modelAdapter, ]); - return new ModelUtil($contaoFramework); + $insertTagParser = $parameters['insertTagParser'] ?? $this->createMock(InsertTagParser::class); + + return new ModelUtil($contaoFramework, $insertTagParser); } /**