mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Тесты для AuthorizationForm и кастомного RequiredValidator
В модуль Authserver добавлены хелперы для логирования Исправлена ошибка в MinecraftAccessKey Ускорено тестирование всего приложения
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
namespace tests\codeception\common\fixtures;
|
||||
|
||||
use common\models\MinecraftAccessKey;
|
||||
use yii\test\ActiveFixture;
|
||||
|
||||
class MinecraftAccessKeyFixture extends ActiveFixture {
|
||||
|
||||
public $modelClass = MinecraftAccessKey::class;
|
||||
|
||||
public $dataFile = '@tests/codeception/common/fixtures/data/minecraft-access-keys.php';
|
||||
|
||||
public $depends = [
|
||||
AccountFixture::class,
|
||||
];
|
||||
|
||||
}
|
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
return [
|
||||
[
|
||||
'access_token' => 'e7bb6648-2183-4981-9b86-eba5e7f87b42',
|
||||
'client_token' => '6f380440-0c05-47bd-b7c6-d011f1b5308f',
|
||||
'account_id' => 1,
|
||||
'created_at' => 1472423530,
|
||||
'updated_at' => 1472423530,
|
||||
],
|
||||
];
|
Reference in New Issue
Block a user