Get rid of mockery library. Still have some troubles with functional tests for api

This commit is contained in:
ErickSkrauch
2019-12-14 00:16:05 +03:00
parent d9ef27b745
commit e8b71d33d0
37 changed files with 217 additions and 374 deletions

View File

@@ -4,5 +4,4 @@ modules:
- Yii2:
part: [orm, email, fixtures]
configFile: tests/config/unit.php
- common\tests\_support\Mockery
- common\tests\_support\queue\CodeceptionQueueHelper

View File

@@ -4,17 +4,13 @@ declare(strict_types=1);
namespace console\tests\unit;
use Codeception\Test\Unit;
use Mockery;
use common\tests\helpers\ExtendedPHPMock;
/**
* @property \console\tests\UnitTester $tester
*/
class TestCase extends Unit {
protected function tearDown(): void {
parent::tearDown();
Mockery::close();
}
use ExtendedPHPMock;
/**
* A list of fixtures that will be loaded before the test, but after the database is cleaned up