From f212fd6fc16f5827657be6252e5299bc1e356848 Mon Sep 17 00:00:00 2001
From: Tim Rohaly <42475-tr@users.noreply.drupalcode.org>
Date: Sat, 29 Jun 2024 20:51:16 +0000
Subject: [PATCH] Issue #3458062 by TR: Fix "call to undefined method" in D11
 test case

---
 .../TypedDataFormWidget/FormWidgetBrowserTestBase.php       | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/src/Functional/TypedDataFormWidget/FormWidgetBrowserTestBase.php b/tests/src/Functional/TypedDataFormWidget/FormWidgetBrowserTestBase.php
index 3caf2a5..1e57cbd 100644
--- a/tests/src/Functional/TypedDataFormWidget/FormWidgetBrowserTestBase.php
+++ b/tests/src/Functional/TypedDataFormWidget/FormWidgetBrowserTestBase.php
@@ -58,7 +58,7 @@ abstract class FormWidgetBrowserTestBase extends BrowserTestBase {
   public function testIsApplicable(): void {
     // Force any tests that extend this class to implement their own version
     // of this function and give a helpful explanation if it is missed.
-    $this->fail('There is no implementation of the mandatory test function: ' . $this->getName());
+    $this->fail('There is no implementation of the mandatory test function: ' . __METHOD__);
   }
 
   /**
@@ -66,7 +66,7 @@ abstract class FormWidgetBrowserTestBase extends BrowserTestBase {
    * @covers ::extractFormValues
    */
   public function testFormEditing(): void {
-    $this->fail('There is no implementation of the mandatory test function: ' . $this->getName());
+    $this->fail('There is no implementation of the mandatory test function: ' . __METHOD__);
   }
 
   /**
@@ -74,7 +74,7 @@ abstract class FormWidgetBrowserTestBase extends BrowserTestBase {
    * @covers ::flagViolations
    */
   public function testValidation(): void {
-    $this->fail('There is no implementation of the mandatory test function: ' . $this->getName());
+    $this->fail('There is no implementation of the mandatory test function: ' . __METHOD__);
   }
 
 }
-- 
GitLab