<?php12namespace Pterodactyl\Tests;34use Carbon\Carbon;5use Carbon\CarbonImmutable;6use Illuminate\Foundation\Testing\TestCase as BaseTestCase;78abstract class TestCase extends BaseTestCase9{10/**11* Setup tests.12*/13public function setUp(): void14{15parent::setUp();1617Carbon::setTestNow(Carbon::now());18CarbonImmutable::setTestNow(Carbon::now());1920// Why, you ask? If we don't force this to false it is possible for certain exceptions21// to show their error message properly in the integration test output, but not actually22// be setup correctly to display their message in production.23//24// If we expect a message in a test, and it isn't showing up (rather, showing the generic25// "an error occurred" message), we can probably assume that the exception isn't one that26// is recognized as being user viewable.27config()->set('app.debug', false);2829$this->setKnownUuidFactory();30}3132/**33* Tear down tests.34*/35protected function tearDown(): void36{37parent::tearDown();3839Carbon::setTestNow();40CarbonImmutable::setTestNow();41}4243/**44* Handles the known UUID handling in certain unit tests. Use the "KnownUuid" trait45* in order to enable this ability.46*/47public function setKnownUuidFactory()48{49// do nothing50}51}525354