misc_pterodactyl-panel/tests/TestCase.php

43 lines
763 B
PHP
Raw Normal View History

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