From 44a34229fb5cb0725fe0b4a93bcfc34562761981 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Tue, 2 Aug 2016 16:48:46 +0900 Subject: [PATCH] Fix failing unit test in HHVM --- tests/unit/framework/SecurityTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/framework/SecurityTest.php b/tests/unit/framework/SecurityTest.php index 86e9c81b5..6c83c595f 100644 --- a/tests/unit/framework/SecurityTest.php +++ b/tests/unit/framework/SecurityTest.php @@ -20,6 +20,7 @@ class SecurityTest extends \Codeception\TestCase\Test public function testEncryption() { $plaintext = Rhymix\Framework\Security::getRandom(); + config('crypto.encryption_key', Rhymix\Framework\Security::getRandom()); // Encryption with default key. $encrypted = Rhymix\Framework\Security::encrypt($plaintext); @@ -58,6 +59,7 @@ class SecurityTest extends \Codeception\TestCase\Test public function testSignature() { $plaintext = Rhymix\Framework\Security::getRandom(); + config('crypto.authentication_key', Rhymix\Framework\Security::getRandom()); $signature = Rhymix\Framework\Security::createSignature($plaintext); $this->assertRegexp('/^[a-zA-Z0-9-_]{40}$/', $signature);