Всем привет. При запуске теста выдает вот такую вот ошибку:
[yii\base\UnknownPropertyException] Setting unknown property: yii\web\Application::adminEmail
#1 /var/www/images/vendor/yiisoft/yii2/base/Component.php:209
#2 /var/www/images/vendor/yiisoft/yii2/BaseYii.php:558
#3 /var/www/images/vendor/yiisoft/yii2/base/BaseObject.php:107
#4 /var/www/images/vendor/yiisoft/yii2/base/Application.php:206
#5 yii\base\Application->__construct
#6 /var/www/images/vendor/yiisoft/yii2/di/Container.php:400
#7 /var/www/images/vendor/yiisoft/yii2/di/Container.php:159
#8 /var/www/images/vendor/yiisoft/yii2/BaseYii.php:365
#9 /var/www/images/vendor/symfony/event-dispatcher/EventDispatcher.php:230
#10 /var/www/images/vendor/symfony/event-dispatcher/EventDispatcher.php:59
Ругается на любое сво-во в файле с параметрами /prams.php
В чем может быть проблема?
params.php
<?php
return [
'adminEmail' => 'admin@example.com',
'supportEmail' => 'support@example.com',
'senderEmail' => 'noreply@example.com',
'senderName' => 'Example.com mailer',
'user.passwordResetTokenExpire' => 3600,
'user.passwordMinLength' => 6,
'user.rememberMeDuration' => 3600 * 24 * 30,
];
codeception-local.php
<?php
return yii\helpers\ArrayHelper::merge(
require __DIR__ . '/main.php',
require __DIR__ . '/main-local.php',
require __DIR__ . '/test.php',
require __DIR__ . '/test-local.php',
require __DIR__ . '/params.php',
[
'components' => [
'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' => 'YO6sh7ZcYB5D22U5wpX2Cq2pIwzsP6gy',
],
],
]
);
codeception.yaml
namespace: common\tests
actor_suffix: Tester
paths:
tests: tests
output: tests/_output
data: tests/_data
support: tests/_support
bootstrap: _bootstrap.php
settings:
colors: true
memory_limit: 1024M
modules:
config:
Yii2:
configFile: 'config/codeception-local.php'