grantPermissionsToTestedRole(['view config_test']); } /** * {@inheritdoc} */ protected function createEntity() { $config_test = ConfigTest::create([ 'id' => 'llama', 'label' => 'Llama', ]); $config_test->save(); return $config_test; } /** * {@inheritdoc} */ protected function getExpectedNormalizedEntity() { $normalization = [ 'uuid' => $this->entity->uuid(), 'id' => 'llama', 'weight' => 0, 'langcode' => 'en', 'status' => TRUE, 'dependencies' => [], 'label' => 'Llama', 'style' => NULL, 'size' => NULL, 'size_value' => NULL, 'protected_property' => NULL, ]; return $normalization; } /** * {@inheritdoc} */ protected function getNormalizedPostEntity() { // @todo Update in https://www.drupal.org/node/2300677. } }