From 8865b53680a4532aa372ac0031e1bf57581d6c80 Mon Sep 17 00:00:00 2001 From: Matt Glaman Date: Fri, 2 Apr 2021 12:00:53 -0500 Subject: [PATCH] Fix HEAD test fails due to spacing (#169) --- tests/src/DeprecationRulesTest.php | 4 ++-- tests/src/DrupalIntegrationTest.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/src/DeprecationRulesTest.php b/tests/src/DeprecationRulesTest.php index d4f73740..7aab7c6c 100644 --- a/tests/src/DeprecationRulesTest.php +++ b/tests/src/DeprecationRulesTest.php @@ -28,8 +28,8 @@ public function dataDeprecatedSamples(): \Generator [ 'Call to deprecated method url() of class Drupal: in drupal:8.0.0 and is removed from drupal:9.0.0. -Instead create a \Drupal\Core\Url object directly, for example using -Url::fromRoute().', + Instead create a \Drupal\Core\Url object directly, for example using + Url::fromRoute().', '\Drupal calls should be avoided in classes, use dependency injection instead', ] ]; diff --git a/tests/src/DrupalIntegrationTest.php b/tests/src/DrupalIntegrationTest.php index cdef2432..a983e8a8 100644 --- a/tests/src/DrupalIntegrationTest.php +++ b/tests/src/DrupalIntegrationTest.php @@ -86,8 +86,8 @@ public function testServiceMapping8() 'Call to an undefined method Drupal\Core\Entity\EntityManager::thisMethodDoesNotExist().', 'Call to deprecated method getDefinitions() of class Drupal\\Core\\Entity\\EntityManager: in drupal:8.0.0 and is removed from drupal:9.0.0. -Use \\Drupal\\Core\\Entity\\EntityTypeManagerInterface::getDefinitions() -instead.' + Use \\Drupal\\Core\\Entity\\EntityTypeManagerInterface::getDefinitions() + instead.' ]; $errors = $this->runAnalyze(__DIR__ . '/../fixtures/drupal/modules/phpstan_fixtures/src/TestServicesMappingExtension.php'); $this->assertCount(3, $errors->getErrors());