function PathAliasResourceTestBase::getExpectedNormalizedEntity
Same name in other branches
- 9 core/modules/path_alias/tests/src/Functional/Rest/PathAliasResourceTestBase.php \Drupal\Tests\path_alias\Functional\Rest\PathAliasResourceTestBase::getExpectedNormalizedEntity()
- 10 core/modules/path_alias/tests/src/Functional/Rest/PathAliasResourceTestBase.php \Drupal\Tests\path_alias\Functional\Rest\PathAliasResourceTestBase::getExpectedNormalizedEntity()
- 11.x core/modules/path_alias/tests/src/Functional/Rest/PathAliasResourceTestBase.php \Drupal\Tests\path_alias\Functional\Rest\PathAliasResourceTestBase::getExpectedNormalizedEntity()
Overrides EntityResourceTestBase::getExpectedNormalizedEntity
1 call to PathAliasResourceTestBase::getExpectedNormalizedEntity()
- PathAliasHalJsonTestBase::getExpectedNormalizedEntity in core/
modules/ path_alias/ tests/ src/ Functional/ Hal/ PathAliasHalJsonTestBase.php - Returns the expected normalization of the entity.
1 method overrides PathAliasResourceTestBase::getExpectedNormalizedEntity()
- PathAliasHalJsonTestBase::getExpectedNormalizedEntity in core/
modules/ path_alias/ tests/ src/ Functional/ Hal/ PathAliasHalJsonTestBase.php - Returns the expected normalization of the entity.
File
-
core/
modules/ path_alias/ tests/ src/ Functional/ Rest/ PathAliasResourceTestBase.php, line 64
Class
- PathAliasResourceTestBase
- Base class for path_alias EntityResource tests.
Namespace
Drupal\Tests\path_alias\Functional\RestCode
protected function getExpectedNormalizedEntity() {
return [
'id' => [
[
'value' => 1,
],
],
'revision_id' => [
[
'value' => 1,
],
],
'langcode' => [
[
'value' => LanguageInterface::LANGCODE_NOT_SPECIFIED,
],
],
'path' => [
[
'value' => '/<front>',
],
],
'alias' => [
[
'value' => '/frontpage1',
],
],
'status' => [
[
'value' => TRUE,
],
],
'uuid' => [
[
'value' => $this->entity
->uuid(),
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.