You are here

public function DisplayVariantTest::testAccess in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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 130
Contains \Drupal\Tests\Core\Display\DisplayVariantTest.

Class

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

Namespace

Drupal\Tests\Core\Display

Code

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