You can create a file in the path / in / your / project / tests / codeception / config called let say params.php. Then add params to the newly created file:
<?php return [ 'login.email' => ' check@check.com ', 'login.password' => '111111' ];
In your path / in / your / project / tests / codeception / config / config.php put this:
<?php return [ 'components' => [ ... ], 'params' => require(__DIR__ . '/params.php'), ];
Use it in the test code in the same way as you call params in a regular Yii application. It does not matter if it is a unit, functionality, etc.
Yii::$app->params['user.login'];
source share