Skip to content

Commit 726965b

Browse files
committed
Fix tests
1 parent 850e995 commit 726965b

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

public/index-test.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
use App\ApplicationRunner;
66

7-
define('YII_ENV', 'testing');
8-
97
// PHP built-in server routing.
108
if (PHP_SAPI === 'cli-server') {
119
// Serve static files as is.

public/index.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
use App\ApplicationRunner;
66

7-
define('YII_ENV', 'production');
8-
97
// PHP built-in server routing.
108
if (PHP_SAPI === 'cli-server') {
119
// Serve static files as is.

tests/functional/EventListenerConfigurationTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ public function testConsoleListenerConfiguration(): void
1717
$config = new Config(
1818
dirname(__DIR__, 2),
1919
'/config/packages', // Configs path.
20+
null,
21+
[
22+
'params',
23+
'events',
24+
'events-web',
25+
'events-console',
26+
]
2027
);
2128

2229
$container = (new Container($config->get('console')))->get(ContainerInterface::class);

0 commit comments

Comments
 (0)