function BaseFieldAccessTest::testProtectedField

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

Code

public function testProtectedField() {
    $this->drupalGet('test-entity-protected-access');
    $this->assertText('ok to see this one');
    $this->assertNoText('no access value');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.