diff --git a/src/DeprecationAnalyser.php b/src/DeprecationAnalyser.php index 91a4ce9..621e7eb 100644 --- a/src/DeprecationAnalyser.php +++ b/src/DeprecationAnalyser.php @@ -421,7 +421,7 @@ class DeprecationAnalyser implements DeprecationAnalyserInterface { // 8.6.0, so use that version number. Otherwise use the number from the // message. $version = ''; - if (preg_match('!\(Web)?TestBase. Deprecated in [Dd]rupal[ :]8.8.0 !', $error)) { + if (preg_match('!\\(Web|)TestBase. Deprecated in [Dd]rupal[ :]8.8.0 !', $error)) { $version = '8.6.0'; $error .= " Replacement available from drupal:8.6.0."; } diff --git a/tests/modules/upgrade_status_test_error/src/DummyTestClass.php b/tests/modules/upgrade_status_test_error/src/DummyTestClass.php index a5640fe..b363709 100644 --- a/tests/modules/upgrade_status_test_error/src/DummyTestClass.php +++ b/tests/modules/upgrade_status_test_error/src/DummyTestClass.php @@ -11,4 +11,11 @@ use Drupal\simpletest\WebTestBase; */ class DummyTestClass extends WebTestBase { + /** + * No-op test method to make testbot happy. + */ + public function testNoop() { + + } + }