koel/tests/TestCase.php

30 lines
629 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
{
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();
}
2019-07-22 07:03:23 +00:00
protected function tearDown(): void
{
$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
}