mirror of
https://github.com/koel/koel
synced 2024-11-24 21:23:06 +00:00
29 lines
629 B
PHP
29 lines
629 B
PHP
<?php
|
|
|
|
namespace Tests;
|
|
|
|
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
|
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
|
|
use Mockery;
|
|
use Tests\Traits\InteractsWithIoc;
|
|
|
|
abstract class TestCase extends BaseTestCase
|
|
{
|
|
use DatabaseTransactions;
|
|
use CreatesApplication;
|
|
use InteractsWithIoc;
|
|
|
|
public function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
$this->prepareForTests();
|
|
}
|
|
|
|
protected function tearDown(): void
|
|
{
|
|
$this->addToAssertionCount(Mockery::getContainer()->mockery_getExpectationCount());
|
|
|
|
Mockery::close();
|
|
parent::tearDown();
|
|
}
|
|
}
|