protected function EntityViewBuilderTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/KernelTests/Core/Entity/EntityViewBuilderTest.php \Drupal\KernelTests\Core\Entity\EntityViewBuilderTest::setUp()
Overrides EntityKernelTestBase::setUp
File
- core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityViewBuilderTest.php, line 29
Class
- EntityViewBuilderTest
- Tests the entity view builder.
Namespace
Drupal\KernelTests\Core\EntityCode
protected function setUp() {
parent::setUp();
$this
->installConfig([
'user',
'entity_test',
]);
// Give anonymous users permission to view test entities.
Role::load(RoleInterface::ANONYMOUS_ID)
->grantPermission('view test entity')
->save();
}