Browse Source

Update expected exception messages.

ADmad 8 years ago
parent
commit
0cbe0b020c
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, 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 @@ class CookieComponentTest extends TestCase
     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');
     }