2016-01-02 19:13:18 +05:30
|
|
|
<?php
|
2019-05-14 04:28:29 +05:30
|
|
|
declare(strict_types=1);
|
|
|
|
|
2019-02-21 01:28:52 +05:30
|
|
|
namespace common\tests\unit;
|
2016-01-02 19:13:18 +05:30
|
|
|
|
2019-05-14 04:28:29 +05:30
|
|
|
use Codeception\Test\Unit;
|
2017-04-25 03:53:04 +05:30
|
|
|
use Mockery;
|
|
|
|
|
2019-05-14 04:28:29 +05:30
|
|
|
class TestCase extends Unit {
|
2016-01-21 02:44:29 +05:30
|
|
|
|
2016-10-29 03:17:31 +05:30
|
|
|
/**
|
2019-02-21 01:28:52 +05:30
|
|
|
* @var \common\tests\UnitTester
|
2016-10-29 03:17:31 +05:30
|
|
|
*/
|
|
|
|
protected $tester;
|
2016-01-21 02:44:29 +05:30
|
|
|
|
2018-04-18 02:17:25 +05:30
|
|
|
protected function tearDown() {
|
|
|
|
parent::tearDown();
|
|
|
|
Mockery::close();
|
|
|
|
}
|
|
|
|
|
2016-10-29 03:17:31 +05:30
|
|
|
/**
|
|
|
|
* Список фикстур, что будут загружены перед тестом, но после зачистки базы данных
|
|
|
|
*
|
|
|
|
* @url http://codeception.com/docs/modules/Yii2#fixtures
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
2019-05-14 04:28:29 +05:30
|
|
|
public function _fixtures(): array {
|
2016-10-29 03:17:31 +05:30
|
|
|
return [];
|
|
|
|
}
|
2016-01-21 02:44:29 +05:30
|
|
|
|
2016-01-02 19:13:18 +05:30
|
|
|
}
|