1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-23 01:22:30 +01:00
Pterodactyl-Panel/tests/TestCase.php
2018-05-20 16:38:27 -07:00

41 lines
698 B
PHP

<?php
namespace Tests;
use Cake\Chronos\Chronos;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
use CreatesApplication;
/**
* Setup tests.
*/
public function setUp()
{
parent::setUp();
$this->setKnownUuidFactory();
}
/**
* Tear down tests.
*/
protected function tearDown()
{
parent::tearDown();
Chronos::setTestNow();
}
/**
* Handles the known UUID handling in certain unit tests. Use the "KnownUuid" trait
* in order to enable this ability.
*/
public function setKnownUuidFactory()
{
// do nothing
}
}