You are here

public function BlockAriaLandmarkRolesTest::testGetRoles in Block ARIA Landmark Roles 8

Test getting the ARIA landmark roles.

@covers ::get

File

tests/src/Unit/BlockAriaLandmarkRolesTest.php, line 21

Class

BlockAriaLandmarkRolesTest
Test the BlockAriaLandmarkRoles helper class.

Namespace

Drupal\Tests\block_aria_landmark_roles\Unit

Code

public function testGetRoles() {
  $this
    ->assertEquals([
    'application',
    'banner',
    'complementary',
    'contentinfo',
    'form',
    'main',
    'navigation',
    'search',
  ], BlockAriaLandmarkRoles::get());
}