@@ -474,6 +474,7 @@ public function hasKey($key) {
* {@inheritdoc}
*/
publicfunctiongetOriginalClass(){
@trigger_error('The "getOriginalClass" method is deprecated in drupal:11.4.0 and will be removed in drupal:12.0.0. Use getDecoratedClasses() instead. See https://www.drupal.org/node/3557464',E_USER_DEPRECATED);
$this->expectUserDeprecationMessage('The "getOriginalClass" method is deprecated in drupal:11.4.0 and will be removed in drupal:12.0.0. Use getDecoratedClasses() instead. See https://www.drupal.org/node/3557464');
@@ -336,7 +339,9 @@ public function testGetOriginalClassUnchanged(): void {
* @legacy-covers ::setClass
* @legacy-covers ::getOriginalClass
*/
#[IgnoreDeprecations]
publicfunctiontestGetOriginalClassChanged():void{
$this->expectUserDeprecationMessage('The "getOriginalClass" method is deprecated in drupal:11.4.0 and will be removed in drupal:12.0.0. Use getDecoratedClasses() instead. See https://www.drupal.org/node/3557464');