Skip to content
Permalink
Browse files

Add integration test for cookies + psr7

  • Loading branch information...
markstory committed Jun 22, 2016
1 parent 6a72463 commit cadeb649ca5762235b202be06b07a838b7b93615
Showing with 15 additions and 0 deletions.
  1. +15 −0 tests/TestCase/TestSuite/IntegrationTestCaseTest.php
@@ -352,6 +352,21 @@ public function testFlashSessionAndCookieAsserts()
$this->assertCookieNotSet('user_id');
}
/**
* Test flash and cookie assertions
*
* @return void
*/
public function testFlashSessionAndCookieAssertsHttpServer()
{
$this->useHttpServer(true);
$this->post('/posts/index');
$this->assertSession('An error message', 'Flash.flash.0.message');
$this->assertCookieNotSet('user_id');
$this->assertCookie(1, 'remember_me');
}
/**
* Tests the failure message for assertCookieNotSet
*

0 comments on commit cadeb64

Please sign in to comment.
You can’t perform that action at this time.