Problem/Motivation

In core/tests/Drupal/KernelTests/Core/Routing/MatcherDumperTest.php file change static query to dynamic query in testDump() method

$record = $connection->query("SELECT * FROM {test_routes} WHERE name= :name", [':name' => 'test_route'])->fetchObject();

Proposed resolution

$record = $connection->select('test_routes', 'tr')
      ->fields('tr')
      ->condition('name', 'test_route')
      ->execute()
      ->fetchObject();

Remaining tasks

TBD

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

TBD

CommentFileSizeAuthor
#2 3156612-2.patch818 byteshardik_patel_12

Comments

Hardik_Patel_12 created an issue. See original summary.

hardik_patel_12’s picture

Status: Active » Needs review
StatusFileSize
new818 bytes

Kindly review a patch.

siddhant.bhosale’s picture

Hi @hardik_patel_12, The patch looks good and applies cleanly, but please refer to the issue https://www.drupal.org/project/drupal/issues/3152398.
This issue is already covered. Can you mark it duplicate and close this issue?
Please let me know if I am missing anything or we can close the issue.

siddhant.bhosale’s picture

Assigned: Unassigned » siddhant.bhosale
siddhant.bhosale’s picture

Assigned: siddhant.bhosale » Unassigned
Status: Needs review » Reviewed & tested by the community
hardik_patel_12’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

@sidhhant thanks for reviewing.