getContextsFixture example


          'cache_context.x',
          Container::EXCEPTION_ON_INVALID_REFERENCE,
          new BazCacheContext(),
        ],
        [
          'cache_context.a.b.no-optimize',
          Container::EXCEPTION_ON_INVALID_REFERENCE,
          new NoOptimizeCacheContext(),
        ],
      ]);
    $cache_contexts_manager = new CacheContextsManager($container$this->getContextsFixture());

    $this->assertSame($optimized_context_tokens$cache_contexts_manager->optimizeTokens($context_tokens));
  }

  /** * Provides a list of context token sets. */
  public function providerTestOptimizeTokens() {
    return [
      [['a', 'x']['a', 'x']],
      [['a.b', 'x']['a.b', 'x']],

      
Home | Imprint | This part of the site doesn't use cookies.