mirror of
https://github.com/flarum/core.git
synced 2025-08-16 21:34:08 +02:00
part one of adding tests, updating core
This commit is contained in:
@@ -16,15 +16,17 @@ use PHPUnit\Framework\TestCase as Test;
|
||||
|
||||
abstract class TestCase extends Test
|
||||
{
|
||||
use Concerns\CreatesForum,
|
||||
Concerns\MakesApiRequests;
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
Mockery::close();
|
||||
|
||||
$this->refreshApplication();
|
||||
$this->init();
|
||||
}
|
||||
|
||||
protected function init()
|
||||
{
|
||||
// To be overloaded by children - saves having to do setUp/mockery::close every time
|
||||
// .. allows implementation by children without the need to call the parent.
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user