You are here

public function StoreTest::testCanonizesUrlsForCacheKeys in Zircon Profile 8

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

File

vendor/symfony/http-kernel/Tests/HttpCache/StoreTest.php, line 111

Class

StoreTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function testCanonizesUrlsForCacheKeys() {
  $this
    ->storeSimpleEntry($path = '/test?x=y&p=q');
  $hitsReq = Request::create($path);
  $missReq = Request::create('/test?p=x');
  $this
    ->assertNotNull($this->store
    ->lookup($hitsReq));
  $this
    ->assertNull($this->store
    ->lookup($missReq));
}