Skip to content

Commit

Permalink
tests: config sections are deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
fprochazka committed Jul 7, 2016
1 parent b7d0659 commit fd7a914
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 23 deletions.
2 changes: 1 addition & 1 deletion tests/KdybyTests/Aop/Extension.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ExtensionTest extends Tester\TestCase
{
$config = new Nette\Configurator();
$config->setTempDirectory(TEMP_DIR);
$config->addConfig(__DIR__ . '/../nette-reset.neon', !isset($config->defaultExtensions['nette']) ? 'v23' : 'v22');
$config->addConfig(__DIR__ . '/../nette-reset.' . (!isset($config->defaultExtensions['nette']) ? 'v23' : 'v22') . '.neon');
$config->addConfig(__DIR__ . '/config/' . $configFile . '.neon');

Kdyby\Annotations\DI\AnnotationsExtension::register($config);
Expand Down
22 changes: 0 additions & 22 deletions tests/KdybyTests/nette-reset.neon

This file was deleted.

13 changes: 13 additions & 0 deletions tests/KdybyTests/nette-reset.v22.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
php:
date.timezone: Europe/Prague

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

nette:
security:
frames: null

session:
autoStart: false
12 changes: 12 additions & 0 deletions tests/KdybyTests/nette-reset.v23.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
php:
date.timezone: Europe/Prague

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

http:
frames: null

session:
autoStart: false

0 comments on commit fd7a914

Please sign in to comment.