function ArgumentValidatorTest::saveArgumentHandlerWithValidationOptions
Same name in other branches
- 9 core/modules/views_ui/tests/src/Functional/ArgumentValidatorTest.php \Drupal\Tests\views_ui\Functional\ArgumentValidatorTest::saveArgumentHandlerWithValidationOptions()
- 8.9.x core/modules/views_ui/tests/src/Functional/ArgumentValidatorTest.php \Drupal\Tests\views_ui\Functional\ArgumentValidatorTest::saveArgumentHandlerWithValidationOptions()
- 11.x core/modules/views_ui/tests/src/Functional/ArgumentValidatorTest.php \Drupal\Tests\views_ui\Functional\ArgumentValidatorTest::saveArgumentHandlerWithValidationOptions()
Saves the test_argument view with changes made to the argument handler.
Parameters
bool $specify_validation: The form validation.
1 call to ArgumentValidatorTest::saveArgumentHandlerWithValidationOptions()
- ArgumentValidatorTest::testSpecifyValidation in core/
modules/ views_ui/ tests/ src/ Functional/ ArgumentValidatorTest.php - Tests the 'Specify validation criteria' checkbox functionality.
File
-
core/
modules/ views_ui/ tests/ src/ Functional/ ArgumentValidatorTest.php, line 55
Class
- ArgumentValidatorTest
- Tests the Argument validator through the UI.
Namespace
Drupal\Tests\views_ui\FunctionalCode
protected function saveArgumentHandlerWithValidationOptions($specify_validation) {
$options = [
'options[validate][type]' => 'entity---node',
'options[specify_validation]' => $specify_validation,
];
$this->drupalGet('admin/structure/views/nojs/handler/test_argument/default/argument/id');
$this->submitForm($options, 'Apply');
$this->drupalGet('admin/structure/views/view/test_argument');
$this->submitForm([], 'Save');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.