Commit cd8f71a7 authored by DEEPAK MISHRA's avatar DEEPAK MISHRA Committed by Lee Rowlands
Browse files

Issue #3288144 by deepakkm, Project Update Bot, Rajeshreeputra: Automated...

Issue #3288144 by deepakkm, Project Update Bot, Rajeshreeputra: Automated Drupal 10 compatibility fixes
parent 301ddc3a
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -10,7 +10,6 @@
  "homepage": "https://www.drupal.org/project/jsonapi_menu_items",
  "minimum-stability": "dev",
  "require": {
    "drupal/core": "^8.8 || ^9",
    "drupal/jsonapi_hypermedia": "^1.6",
    "drupal/jsonapi_resources": "^1.0"
  }
+1 −1
Original line number Diff line number Diff line
name: 'JSON:API Menu items'
description: Adds a JSON API resource for menu items.
type: module
core_version_requirement: ^8.8 || ^9
core_version_requirement: ^8.8 || ^9 || ^10
dependencies:
  - drupal:menu_link_content
  - jsonapi_hypermedia:jsonapi_hypermedia
+1 −1
Original line number Diff line number Diff line
name: JSON:API Menu items test
description: 'Test functionality for JSON:API Menu items'
core_version_requirement: ^8.8 || ~9.0
core_version_requirement: ^8.8 || ^9.0 || ^10
type: module
dependencies:
  - drupal:menu_link_content
+2 −2
Original line number Diff line number Diff line
@@ -84,7 +84,7 @@ class JsonapiMenuItemsTest extends BrowserTestBase {
      '%title' => $link_title,
      '%base_path' => Url::fromRoute('<front>')->toString(),
    ]));
    $this->assertEqual($expected_items['data'], $content['data']);
    $this->assertEquals($expected_items['data'], $content['data']);

    // Assert response is cached with appropriate cacheability metadata such
    // that re-saving the link with a new title yields the new title in a
@@ -96,7 +96,7 @@ class JsonapiMenuItemsTest extends BrowserTestBase {
    $match = array_filter($content['data'], function (array $item) use ($content_link) {
      return $item['id'] === 'menu_link_content:' . $content_link->uuid();
    });
    $this->assertEqual($new_title, reset($match)['attributes']['title']);
    $this->assertEquals($new_title, reset($match)['attributes']['title']);

    // Add another link and ensue cacheability metadata ensures the new item
    // appears in a subsequent request.