Skip to content

Commit

Permalink
adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
koertho committed Sep 24, 2024
1 parent a0606de commit 5c76129
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ 7.4, 8.0, 8.1 ]
contao: [ 4.9.*, 4.13.* ]
php: [ 7.4, 8.0, 8.1, 8.2, 8.3 ]
contao: [ 4.13.* ]

steps:
- name: Setup PHP
Expand Down
6 changes: 5 additions & 1 deletion tests/Filesystem/TwigTemplateLocatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Contao\CoreBundle\Config\ResourceFinderInterface;
use Contao\CoreBundle\ContaoCoreBundle;
use Contao\CoreBundle\Routing\ScopeMatcher;
use Contao\CoreBundle\Twig\Loader\TemplateLocator;
use Contao\TestCase\ContaoTestCase;
use Contao\ThemeModel;
use HeimrichHannot\TestUtilitiesBundle\Mock\ModelMockTrait;
Expand Down Expand Up @@ -80,14 +81,17 @@ public function createTestInstance(array $parameter = [], ?MockBuilder $mockBuil
])->getMock();
}

$contaoTemplateLocator = $this->createMock(TemplateLocator::class);

return new TwigTemplateLocator(
$parameter['kernel'],
$parameter['resource_finder'],
$parameter['request_stack'],
$parameter['scope_matcher'],
$this->createMock(Stopwatch::class),
$parameter['cache'],
$contaoFramework
$contaoFramework,
$contaoTemplateLocator
);
}

Expand Down

0 comments on commit 5c76129

Please sign in to comment.