mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Рефакторинг api unit тестов
This commit is contained in:
@@ -1,9 +1,22 @@
|
||||
<?php
|
||||
namespace tests\codeception\api\unit;
|
||||
|
||||
class TestCase extends \Codeception\Test\Unit {
|
||||
|
||||
class TestCase extends \yii\codeception\TestCase {
|
||||
/**
|
||||
* @var \tests\codeception\api\UnitTester
|
||||
*/
|
||||
protected $tester;
|
||||
|
||||
public $appConfig = '@tests/codeception/config/api/unit.php';
|
||||
/**
|
||||
* Список фикстур, что будут загружены перед тестом, но после зачистки базы данных
|
||||
*
|
||||
* @url http://codeception.com/docs/modules/Yii2#fixtures
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function _fixtures() {
|
||||
return [];
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user