mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-02 12:25:44 -05:00
api(application): v2 backport
This commit is contained in:
@@ -9,15 +9,12 @@ use Illuminate\Support\Facades\Event;
|
||||
use Pterodactyl\Events\ActivityLogged;
|
||||
use Pterodactyl\Tests\Assertions\AssertsActivityLogged;
|
||||
use Pterodactyl\Tests\Traits\Integration\CreatesTestModels;
|
||||
use Pterodactyl\Transformers\Api\Application\BaseTransformer;
|
||||
|
||||
abstract class IntegrationTestCase extends TestCase
|
||||
{
|
||||
use CreatesTestModels;
|
||||
use AssertsActivityLogged;
|
||||
|
||||
// protected array $connectionsToTransact = ['pgsql'];
|
||||
|
||||
protected $defaultHeaders = [
|
||||
'Accept' => 'application/json',
|
||||
];
|
||||
@@ -35,7 +32,7 @@ abstract class IntegrationTestCase extends TestCase
|
||||
protected function formatTimestamp(string $timestamp): string
|
||||
{
|
||||
return CarbonImmutable::createFromFormat(CarbonInterface::DEFAULT_TO_STRING_FORMAT, $timestamp)
|
||||
->setTimezone(BaseTransformer::RESPONSE_TIMEZONE)
|
||||
->setTimezone('UTC')
|
||||
->toAtomString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user