Changes for core/tests/Drupal/Tests/AssertHelperTrait.php: 9 added lines, 2 removed lines.
Original line number
Diff line number
Diff line
@@ -4,8 +4,15 @@
useDrupal\Component\Render\MarkupInterface;
@trigger_error(__NAMESPACE__.'\AssertHelperTrait is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. There is no replacement. See https://www.drupal.org/node/3123638',E_USER_DEPRECATED);
/**
* Provides helper methods for assertions.
*
* @deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. There is no
* replacement.
*
* @see https://www.drupal.org/node/3123638
*/
traitAssertHelperTrait{
@@ -18,13 +25,13 @@ trait AssertHelperTrait {
* @return mixed
* The input value, with MarkupInterface objects casted to string.
*
* @deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. There is no
* @deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. There is no
* replacement, just use assertEquals in tests.
*
* @see https://www.drupal.org/node/3123638
*/
protectedstaticfunctioncastSafeStrings($value){
@trigger_error('AssertHelperTrait::castSafeStrings() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. There is no replacement; assertEquals() will automatically cast MarkupInterface to strings when needed. See https://www.drupal.org/node/3123638',E_USER_DEPRECATED);
@trigger_error('AssertHelperTrait::castSafeStrings() is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. There is no replacement; assertEquals() will automatically cast MarkupInterface to strings when needed. See https://www.drupal.org/node/3123638',E_USER_DEPRECATED);
Changes for core/tests/Drupal/Tests/AssertHelperTraitTest.php: 7 added lines, 10 removed lines.
Original line number
Diff line number
Diff line
@@ -12,12 +12,18 @@
*/
classAssertHelperTraitTestextendsUnitTestCase{
publicfunctiontestTraitDeprecation():void{
$this->expectDeprecation('Drupal\Tests\AssertHelperTrait is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. There is no replacement. See https://www.drupal.org/node/3123638');
$this->expectDeprecation('AssertHelperTrait::castSafeStrings() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. There is no replacement; assertEquals() will automatically cast MarkupInterface to strings when needed. See https://www.drupal.org/node/3123638');
$this->expectDeprecation('AssertHelperTrait::castSafeStrings() is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. There is no replacement; assertEquals() will automatically cast MarkupInterface to strings when needed. See https://www.drupal.org/node/3123638');