public function HttpCacheTest::testInvalidatesOnPostPutDeleteRequests in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTest.php \Symfony\Component\HttpKernel\Tests\HttpCache\HttpCacheTest::testInvalidatesOnPostPutDeleteRequests()
File
- vendor/
symfony/ http-kernel/ Tests/ HttpCache/ HttpCacheTest.php, line 60
Class
Namespace
Symfony\Component\HttpKernel\Tests\HttpCacheCode
public function testInvalidatesOnPostPutDeleteRequests() {
foreach (array(
'post',
'put',
'delete',
) as $method) {
$this
->setNextResponse(200);
$this
->request($method, '/');
$this
->assertHttpKernelIsCalled();
$this
->assertResponseOk();
$this
->assertTraceContains('invalidate');
$this
->assertTraceContains('pass');
}
}