From 0cbe0b020c1f1dec0259b0087f0dfed8ff3acfa8 Mon Sep 17 00:00:00 2001 From: ADmad Date: Fri, 27 Apr 2018 01:22:36 +0530 Subject: [PATCH] Update expected exception messages. --- tests/TestCase/Controller/Component/CookieComponentTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestCase/Controller/Component/CookieComponentTest.php b/tests/TestCase/Controller/Component/CookieComponentTest.php index 0762b9c4784..5d4921ae09f 100644 --- a/tests/TestCase/Controller/Component/CookieComponentTest.php +++ b/tests/TestCase/Controller/Component/CookieComponentTest.php @@ -166,7 +166,7 @@ public function testSettings() public function testReadInvalidCipher() { $this->expectException(\RuntimeException::class); - $this->expectExceptionMessage('Invalid encryption cipher. Must be one of aes, rijndael.'); + $this->expectExceptionMessage('Invalid encryption cipher. Must be one of aes.'); $this->Controller->request = $this->request->withCookieParams([ 'Test' => $this->_encrypt('value'), ]); @@ -249,7 +249,7 @@ public function testWriteSimple() public function testWriteInvalidCipher() { $this->expectException(\RuntimeException::class); - $this->expectExceptionMessage('Invalid encryption cipher. Must be one of aes, rijndael.'); + $this->expectExceptionMessage('Invalid encryption cipher. Must be one of aes.'); $this->Cookie->setConfig('encryption', 'derp'); $this->Cookie->write('Test', 'nope'); }