protected function FilterFormatResourceTestBase::getExpectedNormalizedEntity in Drupal 8
Same name and namespace in other branches
- 9 core/modules/filter/tests/src/Functional/Rest/FilterFormatResourceTestBase.php \Drupal\Tests\filter\Functional\Rest\FilterFormatResourceTestBase::getExpectedNormalizedEntity()
Returns the expected normalization of the entity.
Return value
array
Overrides EntityResourceTestBase::getExpectedNormalizedEntity
See also
::createEntity()
File
- core/
modules/ filter/ tests/ src/ Functional/ Rest/ FilterFormatResourceTestBase.php, line 56
Class
Namespace
Drupal\Tests\filter\Functional\RestCode
protected function getExpectedNormalizedEntity() {
return [
'dependencies' => [],
'filters' => [
'filter_html' => [
'id' => 'filter_html',
'provider' => 'filter',
'status' => TRUE,
'weight' => -10,
'settings' => [
'allowed_html' => '<p> <a> <b> <lo>',
'filter_html_help' => TRUE,
'filter_html_nofollow' => FALSE,
],
],
],
'format' => 'pablo',
'langcode' => 'es',
'name' => 'Pablo Picasso',
'status' => TRUE,
'uuid' => $this->entity
->uuid(),
'weight' => 0,
];
}