You are here

function ArgumentValidateTest::view_argument_validate_user in Views (for Drupal 7) 8.3

3 calls to ArgumentValidateTest::view_argument_validate_user()
ArgumentValidateTest::testArgumentValidateUserEither in lib/Drupal/views/Tests/User/ArgumentValidateTest.php
ArgumentValidateTest::testArgumentValidateUserName in lib/Drupal/views/Tests/User/ArgumentValidateTest.php
ArgumentValidateTest::testArgumentValidateUserUid in lib/Drupal/views/Tests/User/ArgumentValidateTest.php

File

lib/Drupal/views/Tests/User/ArgumentValidateTest.php, line 78
Definition of Drupal\views\Tests\User\ArgumentValidateTest.

Class

ArgumentValidateTest
Tests views user argument argument handler.

Namespace

Drupal\views\Tests\User

Code

function view_argument_validate_user($argtype) {
  $view = $this
    ->createViewFromConfig('test_view_argument_validate_user');
  $view->displayHandlers['default']->options['arguments']['null']['validate_options']['type'] = $argtype;
  $view
    ->preExecute();
  $view
    ->initHandlers();
  return $view;
}