public function StoreTest::testCanonizesUrlsForCacheKeys

File

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

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