1 views_argument_validator.test ViewsArgumentValidatorTest::testArgumentValidatePhpFailure()

Make sure argument validation works properly.

File

core/modules/views/tests/views_argument_validator.test, line 39
Definition of ViewsArgumentValidatorTest.

Class

ViewsArgumentValidatorTest
Tests Views argument validators.

Code

function testArgumentValidatePhpFailure() {
  $view = $this->view_test_argument_validate_php_failure();
  $view->save();
  $this->backdropGet('test-php-failure');

  // This should return a 403, indicating that the arguments validation fails.
  $this->assertResponse(403);

  $this->backdropGet('test-php-failure-feed');

  // This should return a 403, indicating that the arguments validation fails.
  $this->assertResponse(403);
}