SystemGenerateJwtSecretCommand example

use Symfony\Component\Filesystem\Filesystem;

/** * @internal * * @covers \Shopware\Core\Maintenance\System\Command\SystemGenerateJwtSecretCommand */
class SystemGenerateJwtSecretCommandTest extends TestCase
{
    public function testMissingPassphrase(): void
    {
        $tester = new CommandTester(new SystemGenerateJwtSecretCommand(
            __DIR__,
            $this->createMock(JwtCertificateGenerator::class)
        ));

        $tester->execute(['--jwt-passphrase' => false]);
        static::assertSame(Command::FAILURE, $tester->getStatusCode());
        static::assertStringContainsString('Passphrase is invalid', $tester->getDisplay());
    }

    public function testUseEnv(): void
    {
        
Home | Imprint | This part of the site doesn't use cookies.