Skip to content

Commit

Permalink
tests: updated for nette/application 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Dec 31, 2020
1 parent b2bf38f commit 87b56ea
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"tracy/tracy": "to use Configurator::enableTracy()"
},
"require-dev": {
"nette/application": "^3.0",
"nette/application": "^3.1",
"nette/caching": "^3.0",
"nette/database": "^3.0",
"nette/forms": "^3.0",
Expand Down
4 changes: 2 additions & 2 deletions tests/Bootstrap/Configurator.developmentContainer.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ Assert::type(Nette\Http\Session::class, $container->getService('session'));
Assert::type(Nette\Security\User::class, $container->getService('user'));
Assert::type(Nette\Http\UserStorage::class, $container->getService('nette.userStorage'));
Assert::type(Nette\Application\Application::class, $container->getService('application'));
Assert::type(Nette\Application\Routers\RouteList::class, $container->getService('router'));
Assert::type(Nette\Routing\SimpleRouter::class, $container->getService('router'));
Assert::type(Nette\Application\PresenterFactory::class, $container->getService('nette.presenterFactory'));
Assert::type(Nette\Mail\SendmailMailer::class, $container->getService('nette.mailer'));
Assert::type(Tracy\Logger::class, $container->getService('tracy.logger'));
Assert::type(Tracy\BlueScreen::class, $container->getService('tracy.blueScreen'));
Assert::type(Tracy\Bar::class, $container->getService('tracy.bar'));

Assert::type(Nette\Bridges\ApplicationLatte\ILatteFactory::class, $container->createService('nette.latteFactory'));
Assert::type(Nette\Bridges\ApplicationLatte\LatteFactory::class, $container->createService('nette.latteFactory'));
Assert::type(Nette\Bridges\ApplicationLatte\TemplateFactory::class, $container->createService('nette.templateFactory'));

if (PHP_SAPI !== 'cli') {
Expand Down
4 changes: 2 additions & 2 deletions tests/Bootstrap/Configurator.minimalContainer.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ Assert::type(Nette\Http\Session::class, $container->getService('session'));
Assert::type(Nette\Security\User::class, $container->getService('user'));
Assert::type(Nette\Http\UserStorage::class, $container->getService('nette.userStorage'));
Assert::type(Nette\Application\Application::class, $container->getService('application'));
Assert::type(Nette\Application\Routers\RouteList::class, $container->getService('router'));
Assert::type(Nette\Routing\SimpleRouter::class, $container->getService('router'));
Assert::type(Nette\Application\PresenterFactory::class, $container->getService('nette.presenterFactory'));
Assert::type(Nette\Mail\SendmailMailer::class, $container->getService('nette.mailer'));
Assert::type(Tracy\Logger::class, $container->getService('tracy.logger'));
Assert::type(Tracy\BlueScreen::class, $container->getService('tracy.blueScreen'));
Assert::type(Tracy\Bar::class, $container->getService('tracy.bar'));

Assert::type(Nette\Bridges\ApplicationLatte\ILatteFactory::class, $container->createService('nette.latteFactory'));
Assert::type(Nette\Bridges\ApplicationLatte\LatteFactory::class, $container->createService('nette.latteFactory'));
Assert::type(Nette\Bridges\ApplicationLatte\TemplateFactory::class, $container->createService('nette.templateFactory'));

if (PHP_SAPI !== 'cli') {
Expand Down
4 changes: 4 additions & 0 deletions tests/Bootstrap/Configurator.presentersDecoration.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ test('', function () {
$configurator->setDebugMode(false);
$configurator->setTempDirectory(getTempDir());
$configurator->addConfig(Tester\FileMock::create('
application:
scanFilter: *Presenter*
parameters:
param: "test"
decorator:
Expand All @@ -39,6 +41,8 @@ test('', function () {
$configurator->setDebugMode(false);
$configurator->setTempDirectory(getTempDir());
$configurator->addConfig(Tester\FileMock::create('
application:
scanFilter: *Presenter*
decorator:
BasePresenter:
tags: [test.tag]
Expand Down

0 comments on commit 87b56ea

Please sign in to comment.