mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-04 21:35:47 -05:00
Fix bug preventing the creation of API keys with CIDR ranges
This commit is contained in:
@@ -4,12 +4,16 @@ namespace Pterodactyl\Tests\Integration;
|
||||
|
||||
use Carbon\CarbonImmutable;
|
||||
use Pterodactyl\Tests\TestCase;
|
||||
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 = ['mysql'];
|
||||
|
||||
@@ -17,6 +21,13 @@ abstract class IntegrationTestCase extends TestCase
|
||||
'Accept' => 'application/json',
|
||||
];
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
Event::fake(ActivityLogged::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return an ISO-8601 formatted timestamp to use in the API response.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user