Skip to content

Commit

Permalink
wip FormatterUtilTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ericges committed Mar 13, 2024
1 parent a3e5dbd commit 2b5dfb7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/Util/FormatterUtilTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Util;

use Contao\Controller;
use Contao\CoreBundle\InsertTag\InsertTagParser;
use Contao\DataContainer;
use Contao\System;
Expand All @@ -13,7 +14,10 @@ class FormatterUtilTest extends ContaoTestCase
{
public function getInstances(array $parameter = []): FormatterUtil
{
$parameter['framework'] ??= $this->mockContaoFramework();
$parameter['framework'] ??= $this->mockContaoFramework([
System::class => $this->createMock(System::class),
Controller::class => $this->createMock(Controller::class)
]);
$parameter['insertTagParser'] ??= $this->createMock(InsertTagParser::class);
$parameter['utils'] ??= $this->createMock(Utils::class);
$parameter['system'] ??= $this->createMock(System::class);
Expand Down

0 comments on commit 2b5dfb7

Please sign in to comment.