mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-02 20:35:50 -05:00
Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
This commit is contained in:
co-authored by
Anthony
Sky Mulley
parent
98079a0166
commit
6c0413e39b
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Pterodactyl\Tests\Pest\Unit\Console\GenerateKeyWithoutAppKeyTest;
|
||||
|
||||
use Illuminate\Support\Facades\Process;
|
||||
use Pterodactyl\Tests\TestCase;
|
||||
|
||||
uses(TestCase::class);
|
||||
|
||||
test('a new installation can generate its application key', function (): void {
|
||||
$result = Process::path(base_path())
|
||||
->env(['APP_KEY' => '', 'APP_ENVIRONMENT_ONLY' => 'true', 'CLOCKWORK_ENABLE' => 'false'])
|
||||
->run([PHP_BINARY, 'artisan', 'key:generate', '--show', '--no-ansi']);
|
||||
|
||||
expect($result->exitCode())->toBe(0, $result->errorOutput().$result->output());
|
||||
expect(mb_trim($result->output()))->toStartWith('base64:');
|
||||
});
|
||||
Reference in New Issue
Block a user