Skip to content

Commit

Permalink
tests: add nette-reset
Browse files Browse the repository at this point in the history
  • Loading branch information
fprochazka committed Jul 7, 2016
1 parent 6ecb560 commit 15aa9f3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 19 deletions.
1 change: 1 addition & 0 deletions tests/KdybyTests/Console/Application.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class ApplicationTest extends Tester\TestCase
Kdyby\Console\DI\ConsoleExtension::register($config);
Kdyby\Events\DI\EventsExtension::register($config);
$config->addConfig(__DIR__ . '/config/allow.neon');
$config->addConfig(__DIR__ . '/../../nette-reset.neon');

return $config;
}
Expand Down
1 change: 1 addition & 0 deletions tests/KdybyTests/Console/CliRouter.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class CliRouterTest extends Tester\TestCase
Kdyby\Console\DI\ConsoleExtension::register($config);
$config->addConfig(__DIR__ . '/config/short-url.neon');
$config->addConfig(__DIR__ . '/config/allow.neon');
$config->addConfig(__DIR__ . '/../../nette-reset.neon');
$container = $config->createContainer();
/** @var Nette\DI\Container $container */

Expand Down
1 change: 1 addition & 0 deletions tests/KdybyTests/Console/Extension.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class ExtensionTest extends Tester\TestCase
$config->addParameters(['container' => ['class' => 'SystemContainer_' . md5(mt_rand())]]);
Kdyby\Console\DI\ConsoleExtension::register($config);
$config->addConfig(__DIR__ . '/config/allow.neon');
$config->addConfig(__DIR__ . '/../../nette-reset.neon');

return $config;
}
Expand Down
1 change: 1 addition & 0 deletions tests/KdybyTests/Console/InputErrors.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class InputErrorsTest extends Tester\TestCase
Kdyby\Events\DI\EventsExtension::register($config);
$config->addConfig(__DIR__ . '/config/input-errors.neon');
$config->addConfig(__DIR__ . '/config/allow.neon');
$config->addConfig(__DIR__ . '/../../nette-reset.neon');

return $config;
}
Expand Down
28 changes: 9 additions & 19 deletions tests/nette-reset.neon
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
common:
php:
date.timezone: Europe/Prague
php:
date.timezone: Europe/Prague

services:
cacheStorage:
class: Nette\Caching\Storages\MemoryStorage
services:
cacheStorage:
class: Nette\Caching\Storages\MemoryStorage

v22 < common:
nette:
security:
frames: null
http:
frames: null

session:
autoStart: false

v23 < common:
http:
frames: null

session:
autoStart: false
session:
autoStart: false

0 comments on commit 15aa9f3

Please sign in to comment.