You are here

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

Test getting the ARIA landmark roles as an associative array.

@covers ::getAssociative

File

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

Class

BlockAriaLandmarkRolesTest
Test the BlockAriaLandmarkRoles helper class.

Namespace

Drupal\Tests\block_aria_landmark_roles\Unit

Code

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