function DisplayVariantTest::testAccess

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php \Drupal\Tests\Core\Display\DisplayVariantTest::testAccess()
  2. 8.9.x core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php \Drupal\Tests\Core\Display\DisplayVariantTest::testAccess()
  3. 10 core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php \Drupal\Tests\Core\Display\DisplayVariantTest::testAccess()

Tests the access() method.

@covers ::access

File

core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php, line 127

Class

DisplayVariantTest
@coversDefaultClass \Drupal\Core\Display\VariantBase @group Display

Namespace

Drupal\Tests\Core\Display

Code

public function testAccess() : void {
    $display_variant = $this->setUpDisplayVariant();
    $this->assertTrue($display_variant->access());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.