Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

Commit

Permalink
tests: do not test onCreate template event (this has already been mov…
Browse files Browse the repository at this point in the history
…ed to upstream)
  • Loading branch information
xificurk committed Jan 5, 2020
1 parent 0d691b2 commit 7fbfb95
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 27 deletions.
18 changes: 0 additions & 18 deletions tests/Bridges/TemplateFactoryDI/Fixtures/FooConfigurator.php

This file was deleted.

5 changes: 0 additions & 5 deletions tests/Bridges/TemplateFactoryDI/Fixtures/config.neon
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ services:
mockTranslator:
type: Nette\Localization\ITranslator
factory: NepadaTests\Bridges\TemplateFactoryDI\Fixtures\MockTranslatorFactory::create
fooConfigurator: NepadaTests\Bridges\TemplateFactoryDI\Fixtures\FooConfigurator

latte.templateFactory:
setup:
- '$onCreate[]' = [@fooConfigurator, callback]

templateFactory.templateConfigurator:
setup:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ namespace NepadaTests\Bridges\TemplateFactoryDI;

use Latte\Loaders\StringLoader;
use Nepada\TemplateFactory\TemplateConfigurator;
use NepadaTests\Bridges\TemplateFactoryDI\Fixtures\FooConfigurator;
use NepadaTests\Bridges\TemplateFactoryDI\Fixtures\MockTranslatorFactory;
use NepadaTests\TestCase;
use Nette;
Expand Down Expand Up @@ -42,9 +41,6 @@ class TemplateFactoryExtensionTest extends TestCase
Assert::same('bar', $latteTemplate->global->fooProvider);
Assert::same($this->container->getService('application.application'), $latteTemplate->global->applicationProvider);

// onCreateTemplate event
Assert::same($template, $this->container->getByType(FooConfigurator::class)->template);

$latte = $template->getLatte();

// filters
Expand Down

0 comments on commit 7fbfb95

Please sign in to comment.