You are here

function AccessTest::testAccessNone in Views (for Drupal 7) 8.3

Tests none access plugin.

File

lib/Drupal/views/Tests/Plugin/AccessTest.php, line 45
Definition of Drupal\views\Tests\Plugin\AccessTest

Class

AccessTest
Basic test for pluggable access.

Namespace

Drupal\views\Tests\Plugin

Code

function testAccessNone() {
  $view = $this
    ->createViewFromConfig('test_access_none');
  $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));
}