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