Compare markup between MarkupInterface objects and plain strings is deprecated in drupal:10.1.0

Created on 11 January 2024, 6 months ago
Updated 30 January 2024, 5 months ago

Problem/Motivation

Remaining self deprecation notices (7)

  1x: Using assert[Not]Equals() to compare markup between MarkupInterface objects and plain strings is deprecated in drupal:10.1.0 and will throw an error from drupal:11.0.0. Expected: '<p>This is a dummy message with translated text to Hebrew</p>' - Actual '<p>This is a dummy message with translated text to Hebrew</p>'. Use assert[Not]Same() and cast objects to string instead. See https://www.drupal.org/node/3334057
    1x in MessageTemplateUiTest::testMessageTemplateTranslate from Drupal\Tests\message\Functional

  1x: Using assert[Not]Equals() to compare markup between MarkupInterface objects and plain strings is deprecated in drupal:10.1.0 and will throw an error from drupal:11.0.0. Expected: '<p>This is a dummy message with some edited dummy text</p>' - Actual '<p>This is a dummy message with some edited dummy text</p>'. Use assert[Not]Same() and cast objects to string instead. See https://www.drupal.org/node/3334057
    1x in MessageTemplateUiTest::testMessageTemplateTranslate from Drupal\Tests\message\Functional

  1x: Using assert[Not]Equals() to compare markup between MarkupInterface objects and plain strings is deprecated in drupal:10.1.0 and will throw an error from drupal:11.0.0. Expected: '<p>foo [fake:token] and [message:author:name]</p>
' - Actual '<p>foo [fake:token] and [message:author:name]</p>
'. Use assert[Not]Same() and cast objects to string instead. See https://www.drupal.org/node/3334057
    1x in MessageTest::testGetText from Drupal\Tests\message\Kernel

  1x: Using assert[Not]Equals() to compare markup between MarkupInterface objects and plain strings is deprecated in drupal:10.1.0 and will throw an error from drupal:11.0.0. Expected: '<p>bar bar_replacement_1 and @no_replace</p>
' - Actual '<p>bar bar_replacement_1 and @no_replace</p>
'. Use assert[Not]Same() and cast objects to string instead. See https://www.drupal.org/node/3334057
    1x in MessageTest::testGetTextArgumentProcessing from Drupal\Tests\message\Kernel

  1x: Using assert[Not]Equals() to compare markup between MarkupInterface objects and plain strings is deprecated in drupal:10.1.0 and will throw an error from drupal:11.0.0. Expected: '<p>some bar other bar_replacement_1</p>
' - Actual '<p>some bar other bar_replacement_1</p>
'. Use assert[Not]Same() and cast objects to string instead. See https://www.drupal.org/node/3334057
    1x in MessageTest::testGetTextArgumentProcessing from Drupal\Tests\message\Kernel

  1x: Using assert[Not]Equals() to compare markup between MarkupInterface objects and plain strings is deprecated in drupal:10.1.0 and will throw an error from drupal:11.0.0. Expected: '<p>bar bar_replacement and @no_replace</p>
' - Actual '<p>bar bar_replacement and @no_replace</p>
'. Use assert[Not]Same() and cast objects to string instead. See https://www.drupal.org/node/3334057
    1x in MessageTest::testGetTextArgumentProcessing from Drupal\Tests\message\Kernel

  1x: Using assert[Not]Equals() to compare markup between MarkupInterface objects and plain strings is deprecated in drupal:10.1.0 and will throw an error from drupal:11.0.0. Expected: '<p>some bar other bar_replacement</p>
' - Actual '<p>some bar other bar_replacement</p>
'. Use assert[Not]Same() and cast objects to string instead. See https://www.drupal.org/node/3334057
    1x in MessageTest::testGetTextArgumentProcessing from Drupal\Tests\message\Kernel

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bluegeek9

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024