function ElementsVerticalTabsTest::testDefaultTabCleaned 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::testDefaultTabCleaned()
Ensures that vertical tab form values are cleaned.
File
- core/
modules/ system/ src/ Tests/ Form/ ElementsVerticalTabsTest.php, line 89 - Contains \Drupal\system\Tests\Form\ElementsVerticalTabsTest.
Class
- ElementsVerticalTabsTest
- Tests the vertical_tabs form element for expected behavior.
Namespace
Drupal\system\Tests\FormCode
function testDefaultTabCleaned() {
$values = Json::decode($this
->drupalPostForm('form_test/form-state-values-clean', [], t('Submit')));
$this
->assertFalse(isset($values['vertical_tabs__active_tab']), SafeMarkup::format('%element was removed.', [
'%element' => 'vertical_tabs__active_tab',
]));
}