public function BaseFieldAccessTest::testProtectedField in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/tests/src/Functional/Entity/BaseFieldAccessTest.php \Drupal\Tests\views\Functional\Entity\BaseFieldAccessTest::testProtectedField()
Test access to protected base fields.
File
- core/
modules/ views/ tests/ src/ Functional/ Entity/ BaseFieldAccessTest.php, line 67
Class
- BaseFieldAccessTest
- Tests views base field access.
Namespace
Drupal\Tests\views\Functional\EntityCode
public function testProtectedField() {
$this
->drupalGet('test-entity-protected-access');
$this
->assertText('ok to see this one');
$this
->assertNoText('no access value');
}