public function EsiTest::testHandle

File

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

Class

EsiTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function testHandle() {
  $esi = new Esi();
  $cache = $this
    ->getCache(Request::create('/'), new Response('foo'));
  $this
    ->assertEquals('foo', $esi
    ->handle($cache, '/', '/alt', true));
}