/**
* Views used by this test.
*
* @var array
*/
public static $testViews =
['test_view_argument_validate_numeric', 'test_view'
];
public function testArgumentValidateNumeric() { $view = Views::
getView('test_view_argument_validate_numeric'
);
$view->
initHandlers();
$this->
assertFalse($view->argument
['null'
]->
validateArgument($this->
randomString()));
// Reset saved argument validation.
$view->argument
['null'
]->argument_validated = NULL;
$this->
assertTrue($view->argument
['null'
]->
validateArgument(12
));
} /**
* Tests the argument validator test plugin.
*
* @see Drupal\views_test_data\Plugin\views\argument_validator\ArgumentValidatorTest
*/
public function testArgumentValidatorPlugin() {