function ElementsVerticalTabsTest::testDefaultTab in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Form/ElementsVerticalTabsTest.php \Drupal\system\Tests\Form\ElementsVerticalTabsTest::testDefaultTab()
Ensures that default vertical tab is correctly selected.
File
- core/
modules/ system/ src/ Tests/ Form/ ElementsVerticalTabsTest.php, line 81 - Contains \Drupal\system\Tests\Form\ElementsVerticalTabsTest.
Class
- ElementsVerticalTabsTest
- Tests the vertical_tabs form element for expected behavior.
Namespace
Drupal\system\Tests\FormCode
function testDefaultTab() {
$this
->drupalGet('form_test/vertical-tabs');
$this
->assertFieldByName('vertical_tabs__active_tab', 'edit-tab3', t('The default vertical tab is correctly selected.'));
}