mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
30 lines
624 B
PHP
30 lines
624 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, CreatesApplication, InteractsWithIoc;
|
|
|
|
public function setUp()
|
|
{
|
|
parent::setUp();
|
|
$this->prepareForTests();
|
|
}
|
|
|
|
protected function tearDown()
|
|
{
|
|
$this->addToAssertionCount(
|
|
Mockery::getContainer()->mockery_getExpectationCount()
|
|
);
|
|
|
|
Mockery::close();
|
|
|
|
parent::tearDown();
|
|
}
|
|
}
|