Refix unit testing for Laravel

Signed-off-by: crynobone <[email protected]>
This commit is contained in:
crynobone
2012-08-01 13:05:59 +08:00
parent 08fce4fbf8
commit d816eb9ef3
10 changed files with 209 additions and 80 deletions
+3 -1
View File
@@ -373,7 +373,9 @@ class SessionTest extends PHPUnit_Framework_TestCase {
$cookie = Cookie::$jar[Config::get('session.cookie')];
$this->assertEquals('foo', $cookie['value']);
$this->assertEquals(Config::get('session.lifetime'), $cookie['expiration']);
// Shouldn't be able to test this cause session.lifetime store number of minutes
// while cookie expiration store timestamp when it going to expired.
// $this->assertEquals(Config::get('session.lifetime'), $cookie['expiration']);
$this->assertEquals(Config::get('session.domain'), $cookie['domain']);
$this->assertEquals(Config::get('session.path'), $cookie['path']);
$this->assertEquals(Config::get('session.secure'), $cookie['secure']);