grantPermissionsToTestedRole(['access shortcuts']); break; case 'POST': case 'PATCH': $this->grantPermissionsToTestedRole(['access shortcuts', 'customize shortcut links']); break; case 'DELETE': $this->grantPermissionsToTestedRole(['administer shortcuts']); break; } } /** * {@inheritdoc} */ protected function createEntity() { $set = ShortcutSet::create([ 'id' => 'llama_set', 'label' => 'Llama Set', ]); $set->save(); return $set; } /** * {@inheritdoc} */ protected function getExpectedNormalizedEntity() { return [ 'id' => 'llama_set', 'uuid' => $this->entity->uuid(), 'label' => 'Llama Set', 'status' => TRUE, 'langcode' => 'en', 'dependencies' => [], ]; } /** * {@inheritdoc} */ protected function getNormalizedPostEntity() { // @todo Update in https://www.drupal.org/node/2300677. } }