AllowToolbarPath example


  protected $policy;

  /** * {@inheritdoc} */
  protected function setUp(): void {
    parent::setUp();

    $this->policy = new AllowToolbarPath();
  }

  /** * Asserts that caching is allowed if the request goes to toolbar subtree. * * @dataProvider providerTestAllowToolbarPath * @covers ::check */
  public function testAllowToolbarPath($expected_result$path) {
    $request = Request::create($path);
    $result = $this->policy->check($request);
    
Home | Imprint | This part of the site doesn't use cookies.