StackFormation\Tests\ProfileManagerTest::testEncryptedAndUnencryptedFile PHP Метод

testEncryptedAndUnencryptedFile() публичный Метод

    public function testEncryptedAndUnencryptedFile()
    {
        if (!class_exists('\\Vault\\Vault')) {
            $this->markTestSkipped('aoepeople/vault must be installed to run this test');
        }
        putenv("VAULT_MAC_KEY=" . self::VAULT_MAC_KEY);
        putenv("VAULT_ENCRYPTION_KEY=" . self::VAULT_ENCRYPTION_KEY);
        chdir(FIXTURE_ROOT . 'ProfileManager/fixture_encrpyted_mix');
        $this->assertEquals(['test1', 'test2', 'test3', 'test1-personal', 'test2-personal'], $this->profileManager->listAllProfiles());
    }