You are here

protected function ArgumentValidatorTest::saveArgumentHandlerWithValidationOptions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views_ui/src/Tests/ArgumentValidatorTest.php \Drupal\views_ui\Tests\ArgumentValidatorTest::saveArgumentHandlerWithValidationOptions()

Saves the test_argument view with changes made to the argument handler both with and without specify_validation turned on.

Parameters

boolean $specify_validation:

1 call to ArgumentValidatorTest::saveArgumentHandlerWithValidationOptions()
ArgumentValidatorTest::testSpecifyValidation in core/modules/views_ui/src/Tests/ArgumentValidatorTest.php
Tests the 'Specify validation criteria' checkbox functionality.

File

core/modules/views_ui/src/Tests/ArgumentValidatorTest.php, line 53
Contains \Drupal\views_ui\Tests\ArgumentValidatorTest.

Class

ArgumentValidatorTest
Tests the Argument validator through the UI.

Namespace

Drupal\views_ui\Tests

Code

protected function saveArgumentHandlerWithValidationOptions($specify_validation) {
  $options = array(
    'options[validate][type]' => 'entity---node',
    'options[specify_validation]' => $specify_validation,
  );
  $this
    ->drupalPostForm('admin/structure/views/nojs/handler/test_argument/default/argument/id', $options, t('Apply'));
  $this
    ->drupalPostForm('admin/structure/views/view/test_argument', array(), t('Save'));
}