Skip to content
Snippets Groups Projects

Path Variants

Open dpi requested to merge issue/drupal-3489872:3489872-dpi-path-variants into 11.x
1 unresolved thread
29 files
+ 813
121
Compare changes
  • Side-by-side
  • Inline
Files
29
@@ -173,9 +173,12 @@ protected function getExpectedDocument(): array {
'default_langcode' => TRUE,
'langcode' => 'en',
'path' => [
'alias' => '/llama',
'pid' => 1,
'langcode' => 'en',
[
'alias' => '/llama',
'pid' => 1,
'langcode' => 'en',
'variant' => 'default',
],
],
'promote' => TRUE,
'revision_timestamp' => '1973-11-29T21:33:09+00:00',
@@ -294,7 +297,7 @@ public function testPatchPath(): void {
$normalization = $this->getDocumentFromResponse($response);
// Change node's path alias.
$normalization['data']['attributes']['path']['alias'] .= 's-rule-the-world';
$normalization['data']['attributes']['path'][0]['alias'] .= 's-rule-the-world';
// Create node PATCH request.
$request_options = $this->getAuthenticationRequestOptions();
Loading