grantPermissionsToTestedRole(['administer permissions']); } /** * {@inheritdoc} */ protected function createEntity() { $role = Role::create([ 'id' => 'llama', 'name' => $this->randomString(), ]); $role->save(); return $role; } /** * {@inheritdoc} */ protected function getExpectedNormalizedEntity() { return [ 'uuid' => $this->entity->uuid(), 'weight' => 2, 'langcode' => 'en', 'status' => TRUE, 'dependencies' => [], 'id' => 'llama', 'label' => NULL, 'is_admin' => NULL, 'permissions' => [], ]; } /** * {@inheritdoc} */ protected function getNormalizedPostEntity() { // @todo Update in https://www.drupal.org/node/2300677. } }