1
0
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:
Daniel Klabbers
2018-04-13 07:13:10 +02:00
parent 043aa0f2d9
commit dcb3821777
14 changed files with 310 additions and 9 deletions

View File

@@ -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.
}
}