isConsoleRequest()
may return erroneously when testing the Web application in Codeception
#10267
-
In the course of plugin support, I encountered a weird issue where Craft was unable to resolve its current route while running via Codeception, causing tests to fail. The relevant logic is in a branch where The confounding factor seems to be that, by default, Is there a way Craft could avoid tripping over this? — For example, maybe |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
getIsConsoleRequest()
is defined byyii\base\Request
, so this is more of a Yii thing. Not really interested in overriding it or customizing the behavior, when the bug (if there is one here) really should be fixed in Yii.