public function HttpCacheTestCase::assertTraceNotContains

18 calls to HttpCacheTestCase::assertTraceNotContains()
HttpCacheTest::testAssignsDefaultTtlWhenResponseHasNoFreshnessInformation in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php
HttpCacheTest::testDoesNotAssignDefaultTtlWhenResponseHasMustRevalidateDirective in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php
HttpCacheTest::testDoesNotCacheRequestsWithACookieHeader in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php
HttpCacheTest::testDoesNotCacheResponsesWithExplicitNoStoreDirective in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php
HttpCacheTest::testDoesNotCacheResponsesWithoutFreshnessInformationOrAValidator in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php

... See full list

File

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

Class

HttpCacheTestCase

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function assertTraceNotContains($trace) {
  $traces = $this->cache
    ->getTraces();
  $traces = current($traces);
  $this
    ->assertNotRegExp('/' . $trace . '/', implode(', ', $traces));
}