function BaseFieldAccessTest::testProtectedField
Same name in other branches
- 9 core/modules/views/tests/src/Functional/Entity/BaseFieldAccessTest.php \Drupal\Tests\views\Functional\Entity\BaseFieldAccessTest::testProtectedField()
- 8.9.x core/modules/views/tests/src/Functional/Entity/BaseFieldAccessTest.php \Drupal\Tests\views\Functional\Entity\BaseFieldAccessTest::testProtectedField()
- 10 core/modules/views/tests/src/Functional/Entity/BaseFieldAccessTest.php \Drupal\Tests\views\Functional\Entity\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.