koel/tests/TestCase.php
2019-07-22 09:03:23 +02:00

27 lines
613 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(): void
{
parent::setUp();
$this->prepareForTests();
}
protected function tearDown(): void
{
$this->addToAssertionCount(Mockery::getContainer()->mockery_getExpectationCount());
Mockery::close();
parent::tearDown();
}
}