From 8e0e5ad814b6447e9a8a35f4df2aaeba71a8bb97 Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 22 Dec 2021 00:57:30 +0300 Subject: [PATCH] Fix #19096: Fix `Request::getIsConsoleRequest()` may return erroneously when testing a Web application in Codeception --- framework/CHANGELOG.md | 1 + tests/TestCase.php | 1 + 2 files changed, 2 insertions(+) diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index 8ec111d..95d3cbe 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -34,6 +34,7 @@ Yii Framework 2 Change Log - Bug #19021: Fix return type in PhpDoc `yii\db\Migration` functions `up()`, `down()`, `safeUp()` and `safeDown()` (WinterSilence, rhertogh) - Bug #19031: Fix displaying console help for parameters with declared types (WinterSilence) - Bug #19030: Add DI container usage to `yii\base\Widget::end()` (papppeter) +- Bug #19096: Fix `Request::getIsConsoleRequest()` may return erroneously when testing a Web application in Codeception (WinterSilence) 2.0.43 August 09, 2021 diff --git a/tests/TestCase.php b/tests/TestCase.php index c03501f..7be2143 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -82,6 +82,7 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase 'cookieValidationKey' => 'wefJDF8sfdsfSDefwqdxj9oq', 'scriptFile' => __DIR__ . '/index.php', 'scriptUrl' => '/index.php', + 'isConsoleRequest' => false, ], ], ], $config));