function ElementsVerticalTabsTest::testDefaultTab
Same name in other branches
- 8.9.x core/modules/system/tests/src/Functional/Form/ElementsVerticalTabsTest.php \Drupal\Tests\system\Functional\Form\ElementsVerticalTabsTest::testDefaultTab()
- 10 core/modules/system/tests/src/Functional/Form/ElementsVerticalTabsTest.php \Drupal\Tests\system\Functional\Form\ElementsVerticalTabsTest::testDefaultTab()
- 11.x core/modules/system/tests/src/Functional/Form/ElementsVerticalTabsTest.php \Drupal\Tests\system\Functional\Form\ElementsVerticalTabsTest::testDefaultTab()
Ensures that default vertical tab is correctly selected.
File
-
core/
modules/ system/ tests/ src/ Functional/ Form/ ElementsVerticalTabsTest.php, line 87
Class
- ElementsVerticalTabsTest
- Tests the vertical_tabs form element for expected behavior.
Namespace
Drupal\Tests\system\Functional\FormCode
public function testDefaultTab() {
$this->drupalGet('form_test/vertical-tabs');
$this->assertSession()
->elementAttributeContains('css', 'input[name="vertical_tabs__active_tab"]', 'value', 'edit-tab3');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.