function AccessTest::testAccessNone

Tests none access plugin.

File

drupal/core/modules/views/lib/Drupal/views/Tests/Plugin/AccessTest.php, line 52
Definition of Drupal\views\Tests\Plugin\AccessTest

Class

AccessTest
Basic test for pluggable access.

Namespace

Drupal\views\Tests\Plugin

Code

function testAccessNone() {
  $view = views_get_view('test_access_none');
  $view
    ->setDisplay();
  $this
    ->assertTrue($view->display_handler
    ->access($this->admin_user), t('Admin-Account should be able to access the view everytime'));
  $this
    ->assertTrue($view->display_handler
    ->access($this->web_user));
  $this
    ->assertTrue($view->display_handler
    ->access($this->normal_user));
}