public function BlockAriaLandmarkRolesRoleTest::testAddingARole in Block ARIA Landmark Roles 7
Same name and namespace in other branches
- 7.2 tests/role_tests.test \BlockAriaLandmarkRolesRoleTest::testAddingARole()
Test adding a role to a block.
File
- tests/
role_tests.test, line 34 - Tests for adding ARIA roles to blocks.
Class
- BlockAriaLandmarkRolesRoleTest
- Test adding ARIA roles to blocks.
Code
public function testAddingARole() {
$output = 'id="block-system-main" class="block block-system" role="banner"';
$this
->assertNoRaw($output);
$this
->drupalLogin($this
->drupalCreateUser(array(
'administer blocks',
)));
$this
->drupalPost('admin/structure/block/manage/system/main/configure', array(
'role' => 'banner',
), t('Save block'));
$this
->assertRaw($output);
}