Browse Source

Fix #19096: Fix `Request::getIsConsoleRequest()` may return erroneously when testing a Web application in Codeception

tags/2.0.44
Anton 3 years ago committed by GitHub
parent
commit
8e0e5ad814
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      framework/CHANGELOG.md
  2. 1
      tests/TestCase.php

1
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

1
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));

Loading…
Cancel
Save