function BaseFieldAccessTest::testProtectedField
Tests access to protected base fields.
File
-
core/
modules/ views/ tests/ src/ Functional/ Entity/ BaseFieldAccessTest.php, line 65
Class
- BaseFieldAccessTest
- Tests views base field access.
Namespace
Drupal\Tests\views\Functional\EntityCode
public function testProtectedField() : void {
$this->drupalGet('test-entity-protected-access');
$this->assertSession()
->pageTextContains('ok to see this one');
$this->assertSession()
->pageTextNotContains('no access value');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.