Skip to content

Commit

Permalink
tests: fix compatibility with Nette 3
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk committed Dec 2, 2018
1 parent fa9ed02 commit 17c4072
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/Bridges/TexyDI/TexyExtensionTest.phpt
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 17c4072

Please sign in to comment.