You are here

protected function ArgumentDefaultTest::getBasicView in Views (for Drupal 7) 8.3

Same name in this branch
  1. 8.3 lib/Drupal/views/Tests/Plugin/ArgumentDefaultTest.php \Drupal\views\Tests\Plugin\ArgumentDefaultTest::getBasicView()
  2. 8.3 lib/Drupal/views/Tests/User/ArgumentDefaultTest.php \Drupal\views\Tests\User\ArgumentDefaultTest::getBasicView()

Overrides Drupal\views\Tests\ViewTestBase::getBasicView().

Overrides ViewTestBase::getBasicView

File

lib/Drupal/views/Tests/Plugin/ArgumentDefaultTest.php, line 143
Definition of Drupal\views\Tests\Plugin\ArgumentDefaultTest.

Class

ArgumentDefaultTest
Basic test for pluggable argument default.

Namespace

Drupal\views\Tests\Plugin

Code

protected function getBasicView() {
  $view = $this
    ->createViewFromConfig('test_argument_default_fixed');
  $view->displayHandlers['default']->display['display_options']['arguments']['null']['default_argument_options']['argument'] = $this->random;
  return $view;
}