Browse Source

Fix test.

Refs cakephp/chronos#177.
ADmad 7 years ago
parent
commit
136cb4c872
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/TestCase/Http/Cookie/CookieTest.php

+ 2 - 2
tests/TestCase/Http/Cookie/CookieTest.php

@@ -74,7 +74,7 @@ class CookieTest extends TestCase
         $result = $cookie->toHeaderValue();
         $this->assertEquals('cakephp=cakephp-rocks', $result);
 
-        $date = Chronos::createFromFormat('m/d/Y h:m:s', '12/1/2027 12:00:00');
+        $date = Chronos::createFromFormat('m/d/Y h:i:s', '12/1/2027 12:00:00');
 
         $cookie = new Cookie('cakephp', 'cakephp-rocks');
         $cookie = $cookie->withDomain('cakephp.org')
@@ -83,7 +83,7 @@ class CookieTest extends TestCase
             ->withSecure(true);
         $result = $cookie->toHeaderValue();
 
-        $expected = 'cakephp=cakephp-rocks; expires=Tue, 01-Dec-2026 12:00:00 GMT; domain=cakephp.org; secure; httponly';
+        $expected = 'cakephp=cakephp-rocks; expires=Wed, 01-Dec-2027 12:00:00 GMT; domain=cakephp.org; secure; httponly';
         $this->assertEquals($expected, $result);
     }