Skip to content

Commit 15aa9f3

Browse files
committed
tests: add nette-reset
1 parent 6ecb560 commit 15aa9f3

File tree

5 files changed

+13
-19
lines changed

5 files changed

+13
-19
lines changed

Diff for: tests/KdybyTests/Console/Application.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class ApplicationTest extends Tester\TestCase
3838
Kdyby\Console\DI\ConsoleExtension::register($config);
3939
Kdyby\Events\DI\EventsExtension::register($config);
4040
$config->addConfig(__DIR__ . '/config/allow.neon');
41+
$config->addConfig(__DIR__ . '/../../nette-reset.neon');
4142

4243
return $config;
4344
}

Diff for: tests/KdybyTests/Console/CliRouter.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class CliRouterTest extends Tester\TestCase
3434
Kdyby\Console\DI\ConsoleExtension::register($config);
3535
$config->addConfig(__DIR__ . '/config/short-url.neon');
3636
$config->addConfig(__DIR__ . '/config/allow.neon');
37+
$config->addConfig(__DIR__ . '/../../nette-reset.neon');
3738
$container = $config->createContainer();
3839
/** @var Nette\DI\Container $container */
3940

Diff for: tests/KdybyTests/Console/Extension.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class ExtensionTest extends Tester\TestCase
3333
$config->addParameters(['container' => ['class' => 'SystemContainer_' . md5(mt_rand())]]);
3434
Kdyby\Console\DI\ConsoleExtension::register($config);
3535
$config->addConfig(__DIR__ . '/config/allow.neon');
36+
$config->addConfig(__DIR__ . '/../../nette-reset.neon');
3637

3738
return $config;
3839
}

Diff for: tests/KdybyTests/Console/InputErrors.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class InputErrorsTest extends Tester\TestCase
4848
Kdyby\Events\DI\EventsExtension::register($config);
4949
$config->addConfig(__DIR__ . '/config/input-errors.neon');
5050
$config->addConfig(__DIR__ . '/config/allow.neon');
51+
$config->addConfig(__DIR__ . '/../../nette-reset.neon');
5152

5253
return $config;
5354
}

Diff for: tests/nette-reset.neon

+9-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
1-
common:
2-
php:
3-
date.timezone: Europe/Prague
1+
php:
2+
date.timezone: Europe/Prague
43

5-
services:
6-
cacheStorage:
7-
class: Nette\Caching\Storages\MemoryStorage
4+
services:
5+
cacheStorage:
6+
class: Nette\Caching\Storages\MemoryStorage
87

9-
v22 < common:
10-
nette:
11-
security:
12-
frames: null
8+
http:
9+
frames: null
1310

14-
session:
15-
autoStart: false
16-
17-
v23 < common:
18-
http:
19-
frames: null
20-
21-
session:
22-
autoStart: false
11+
session:
12+
autoStart: false

0 commit comments

Comments
 (0)