function ViewsAccessTest::testAccessRole
Tests role access plugin.
File
-
tests/
views_access.test, line 95
Class
- ViewsAccessTest
- Basic test for pluggable access.
Code
public function testAccessRole() {
$view = $this->view_access_role();
$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->assertFalse($view->display_handler
->access($this->web_user));
$this->assertTrue($view->display_handler
->access($this->normal_user));
}