koel/tests/TestCase.php

28 lines
601 B
PHP
Raw Normal View History

2015-12-13 04:42:28 +00:00
<?php
2017-02-14 06:53:02 +00:00
namespace Tests;
2015-12-13 04:42:28 +00:00
2017-08-05 16:56:11 +00:00
use Illuminate\Foundation\Testing\DatabaseTransactions;
2017-02-14 06:53:02 +00:00
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
use Mockery;
2018-08-19 09:05:33 +00:00
use Tests\Traits\InteractsWithIoc;
2015-12-13 04:42:28 +00:00
2017-02-14 06:53:02 +00:00
abstract class TestCase extends BaseTestCase
{
2018-08-19 09:05:33 +00:00
use DatabaseTransactions, CreatesApplication, InteractsWithIoc;
2017-06-10 13:25:30 +00:00
public function setUp()
{
parent::setUp();
$this->prepareForTests();
}
protected function tearDown()
{
$this->addToAssertionCount(Mockery::getContainer()->mockery_getExpectationCount());
2018-08-22 19:19:30 +00:00
Mockery::close();
parent::tearDown();
}
2015-12-13 04:42:28 +00:00
}