I have some trouble testing my code with codeception in Yii2 and i hope one of you can help me.
-
First of all my authentication doesn't work as expected. In my class PagesUrl Class the user isn't logged in but in my template file the user is logged in. Whenever the page is not accessed with Codeception this is not the case.
test
var_dump(Yii::$app->getUser()->getIsGuest()); die(); 'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
'export' => 'site/export',
[
'class' => 'common\routes\PagesUrl',
'pattern' => '',
'route' => 'site/index',
],
//some other rules
]
] - Second I can't seem to generate XML reports: codecept run functional LoginFormCest --xml
// cmd output
// [PHPUnit_Framework_Exception]
// Undefined index: log_incomplete_skipped
Aucun commentaire:
Enregistrer un commentaire