You are here

function ViewsAccessTest::testAccessNone in Views (for Drupal 7) 7.3

Tests none access plugin.

File

tests/views_access.test, line 61
Definition of ViewsAccessTest.

Class

ViewsAccessTest
Basic test for pluggable access.

Code

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