accounts/tests/codeception/config/api/config.php
ErickSkrauch 0cf68a6360 Реорганизованы зависимости для ReCaptcha\Validator
Новый способ отключения проверки капчи для функциональных тестов
2017-05-18 02:09:45 +03:00

35 lines
805 B
PHP

<?php
use api\components\ReCaptcha\Validator;
use GuzzleHttp\Client;
return [
'components' => [
'user' => [
'secret' => 'tests-secret-key',
],
'reCaptcha' => [
'public' => 'public-key',
'secret' => 'private-key',
],
],
'modules' => [
'authserver' => [
'host' => 'localhost',
],
],
'params' => [
'authserverHost' => 'authserver.ely.by',
],
'container' => [
'definitions' => [
Validator::class => function() {
return new class(new Client()) extends Validator {
protected function validateValue($value) {
return null;
}
};
},
],
],
];