Skip to content

Commit

Permalink
tests: fix compatibility with Latte 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk committed Feb 24, 2019
1 parent 428a232 commit 476f1eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/Bridges/TexyDI/TexyExtensionTest.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ class TexyExtensionTest extends TestCase

public function testTemplate(): void
{
$templateFile = __DIR__ . '/fixtures/test.latte';

/** @var Nette\Bridges\ApplicationLatte\Template $template */
$template = $this->container->getByType(Nette\Application\UI\ITemplateFactory::class)->createTemplate();
$template->setFile(__DIR__ . '/fixtures/test.latte');
$template->setFile($templateFile);

Assert::matchFile(
__DIR__ . '/fixtures/test.phtml',
$template->getLatte()->compile($template->getFile())
$template->getLatte()->compile($templateFile)
);

Assert::matchFile(
Expand Down

0 comments on commit 476f1eb

Please sign in to comment.