You are here

public function BaseFieldAccessTest::testProtectedField in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Tests/Entity/BaseFieldAccessTest.php \Drupal\views\Tests\Entity\BaseFieldAccessTest::testProtectedField()

Test access to protected base fields.

File

core/modules/views/src/Tests/Entity/BaseFieldAccessTest.php, line 70
Contains \Drupal\views\Tests\Entity\BaseFieldAccessTest.

Class

BaseFieldAccessTest
Tests views base field access.

Namespace

Drupal\views\Tests\Entity

Code

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