Neos\Flow\Tests\Unit\Security\Cryptography\RsaWalletServicePhpTest::shutdownSavesKeysToKeystoreFileIfKeysWereModified PHP Method

shutdownSavesKeysToKeystoreFileIfKeysWereModified() public method

    public function shutdownSavesKeysToKeystoreFileIfKeysWereModified()
    {
        $this->assertFalse(file_exists('vfs://Foo/EncryptionKey'));
        $keyPairUuid = $this->rsaWalletService->generateNewKeypair(true);
        $this->rsaWalletService->shutdownObject();
        $this->assertTrue(file_exists('vfs://Foo/EncryptionKey'));
        $this->rsaWalletService->destroyKeypair($keyPairUuid);
        $this->rsaWalletService->initializeObject();
        $this->rsaWalletService->getPublicKey($keyPairUuid);
    }