Skip to content

Commit

Permalink
Fix #19096: Fix Request::getIsConsoleRequest() may return erroneous…
Browse files Browse the repository at this point in the history
…ly when testing a Web application in Codeception
  • Loading branch information
WinterSilence committed Dec 21, 2021
1 parent 7d01805 commit 8e0e5ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions framework/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ protected function mockWebApplication($config = [], $appClass = '\yii\web\Applic
'cookieValidationKey' => 'wefJDF8sfdsfSDefwqdxj9oq',
'scriptFile' => __DIR__ . '/index.php',
'scriptUrl' => '/index.php',
'isConsoleRequest' => false,
],
],
], $config));
Expand Down

0 comments on commit 8e0e5ad

Please sign in to comment.