mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 22:33:44 +02:00
Remove unused dependencies and cleanup namespacing
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace Tests;
|
||||
namespace Pterodactyl\Tests;
|
||||
|
||||
use Cake\Chronos\Chronos;
|
||||
use Carbon\Carbon;
|
||||
use Carbon\CarbonImmutable;
|
||||
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
|
||||
|
||||
abstract class TestCase extends BaseTestCase
|
||||
@@ -16,6 +17,9 @@ abstract class TestCase extends BaseTestCase
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
Carbon::setTestNow(Carbon::now());
|
||||
CarbonImmutable::setTestNow(Carbon::now());
|
||||
|
||||
// Why, you ask? If we don't force this to false it is possible for certain exceptions
|
||||
// to show their error message properly in the integration test output, but not actually
|
||||
// be setup correctly to display their message in production.
|
||||
@@ -35,7 +39,8 @@ abstract class TestCase extends BaseTestCase
|
||||
{
|
||||
parent::tearDown();
|
||||
|
||||
Chronos::setTestNow();
|
||||
Carbon::setTestNow();
|
||||
CarbonImmutable::setTestNow();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user