You are here

public function HttpCacheTest::testShouldCatchExceptionsWhenReloadingAndNoCacheRequest in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTest.php \Symfony\Component\HttpKernel\Tests\HttpCache\HttpCacheTest::testShouldCatchExceptionsWhenReloadingAndNoCacheRequest()

File

vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTest.php, line 1023

Class

HttpCacheTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function testShouldCatchExceptionsWhenReloadingAndNoCacheRequest() {
  $this
    ->catchExceptions();
  $this
    ->setNextResponse();
  $this->cacheConfig['allow_reload'] = true;
  $this
    ->request('GET', '/', array(), array(), false, array(
    'Pragma' => 'no-cache',
  ));
  $this
    ->assertExceptionsAreCaught();
}