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
|
|
|
|
{
|
2020-01-17 16:45:45 +00:00
|
|
|
use DatabaseTransactions;
|
|
|
|
use CreatesApplication;
|
|
|
|
use InteractsWithIoc;
|
2020-01-17 16:46:06 +00:00
|
|
|
|
2019-07-22 07:03:23 +00:00
|
|
|
public function setUp(): void
|
2017-06-10 13:25:30 +00:00
|
|
|
{
|
|
|
|
parent::setUp();
|
|
|
|
$this->prepareForTests();
|
|
|
|
}
|
2018-08-19 11:08:16 +00:00
|
|
|
|
2019-07-22 07:03:23 +00:00
|
|
|
protected function tearDown(): void
|
2018-08-19 11:08:16 +00:00
|
|
|
{
|
2018-09-03 12:41:49 +00:00
|
|
|
$this->addToAssertionCount(Mockery::getContainer()->mockery_getExpectationCount());
|
2018-08-22 19:19:30 +00:00
|
|
|
|
2018-08-19 11:08:16 +00:00
|
|
|
Mockery::close();
|
|
|
|
parent::tearDown();
|
|
|
|
}
|
2015-12-13 04:42:28 +00:00
|
|
|
}
|