function AccessTest::testAccessNone in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/views/src/Tests/Plugin/AccessTest.php \Drupal\views\Tests\Plugin\AccessTest::testAccessNone()
Tests none access plugin.
File
- core/
modules/ views/ src/ Tests/ Plugin/ AccessTest.php, line 69 - Contains \Drupal\views\Tests\Plugin\AccessTest.
Class
- AccessTest
- Tests pluggable access for views.
Namespace
Drupal\views\Tests\PluginCode
function testAccessNone() {
$view = Views::getView('test_access_none');
$view
->setDisplay();
$this
->assertTrue($view->display_handler
->access($this->webUser));
$this
->assertTrue($view->display_handler
->access($this->normalUser));
}