public function ResponseTest::testIsCacheableWithSetTtl

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/ResponseTest.php, line 82

Class

ResponseTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testIsCacheableWithSetTtl() {
  $response = new Response();
  $response
    ->setTtl(10);
  $this
    ->assertTrue($response
    ->isCacheable());
}