Browse Source

Revert "Update expected exception messages."

This reverts commit 0cbe0b020c1f1dec0259b0087f0dfed8ff3acfa8.
ADmad 8 years ago
parent
commit
3849cff438
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/TestCase/Controller/Component/CookieComponentTest.php

+ 2 - 2
tests/TestCase/Controller/Component/CookieComponentTest.php

@@ -166,7 +166,7 @@ class CookieComponentTest extends TestCase
     public function testReadInvalidCipher()
     {
         $this->expectException(\RuntimeException::class);
-        $this->expectExceptionMessage('Invalid encryption cipher. Must be one of aes.');
+        $this->expectExceptionMessage('Invalid encryption cipher. Must be one of aes, rijndael.');
         $this->Controller->request = $this->request->withCookieParams([
             'Test' => $this->_encrypt('value'),
         ]);
@@ -249,7 +249,7 @@ class CookieComponentTest extends TestCase
     public function testWriteInvalidCipher()
     {
         $this->expectException(\RuntimeException::class);
-        $this->expectExceptionMessage('Invalid encryption cipher. Must be one of aes.');
+        $this->expectExceptionMessage('Invalid encryption cipher. Must be one of aes, rijndael.');
         $this->Cookie->setConfig('encryption', 'derp');
         $this->Cookie->write('Test', 'nope');
     }