diff --git a/tests/src/Functional/TypedDataFormWidget/FormWidgetBrowserTestBase.php b/tests/src/Functional/TypedDataFormWidget/FormWidgetBrowserTestBase.php index 3caf2a5590a8d1f1b76fc8a5f7ab212670cb8e26..1e57cbdc6cc727dd022b760c44f941064c77be97 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__); } }