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;
|
2018-08-19 11:08:16 +00:00
|
|
|
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();
|
|
|
|
}
|
2018-08-19 11:08:16 +00:00
|
|
|
|
|
|
|
protected function tearDown()
|
|
|
|
{
|
|
|
|
Mockery::close();
|
|
|
|
parent::tearDown();
|
|
|
|
}
|
2015-12-13 04:42:28 +00:00
|
|
|
}
|