public function HttpCacheTest::testInvalidatesOnPostPutDeleteRequests

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php, line 73

Class

HttpCacheTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

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');
  }
}