Loading core/modules/migrate/tests/src/Kernel/MigrateSourceTestBase.php +5 −1 Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ use Drupal\migrate\Plugin\MigrateIdMapInterface; use Drupal\migrate\Plugin\MigrationInterface; use Drupal\migrate\Row; use PHPUnit\Util\Test; /** * Base class for tests of Migrate source plugins. Loading Loading @@ -77,7 +78,10 @@ protected function setUp() { * @return string */ protected function getPluginClass() { $annotations = $this->getAnnotations(); $annotations = Test::parseTestMethodAnnotations( static::class, $this->getName() ); if (isset($annotations['class']['covers'])) { return $annotations['class']['covers'][0]; Loading core/tests/Drupal/Tests/Listeners/DrupalStandardsListenerTrait.php +5 −1 Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestSuite; use PHPUnit\Util\ErrorHandler; use PHPUnit\Util\Test; /** * Listens for PHPUnit tests and fails those with invalid coverage annotations. Loading Loading @@ -60,7 +61,10 @@ private function checkValidCoversForTest(TestCase $test) { return; } // Gather our annotations. $annotations = $test->getAnnotations(); $annotations = Test::parseTestMethodAnnotations( static::class, $test->getName() ); // Glean the @coversDefaultClass annotation. $default_class = ''; $valid_default_class = FALSE; Loading core/tests/Drupal/Tests/TestRequirementsTrait.php +4 −1 Original line number Diff line number Diff line Loading @@ -51,7 +51,10 @@ protected function checkRequirements() { $root = static::getDrupalRoot(); // Check if required dependencies exist. $annotations = $this->getAnnotations(); $annotations = Test::parseTestMethodAnnotations( static::class, $this->getName() ); if (!empty($annotations['class']['requires'])) { $this->checkModuleRequirements($root, $annotations['class']['requires']); } Loading Loading
core/modules/migrate/tests/src/Kernel/MigrateSourceTestBase.php +5 −1 Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ use Drupal\migrate\Plugin\MigrateIdMapInterface; use Drupal\migrate\Plugin\MigrationInterface; use Drupal\migrate\Row; use PHPUnit\Util\Test; /** * Base class for tests of Migrate source plugins. Loading Loading @@ -77,7 +78,10 @@ protected function setUp() { * @return string */ protected function getPluginClass() { $annotations = $this->getAnnotations(); $annotations = Test::parseTestMethodAnnotations( static::class, $this->getName() ); if (isset($annotations['class']['covers'])) { return $annotations['class']['covers'][0]; Loading
core/tests/Drupal/Tests/Listeners/DrupalStandardsListenerTrait.php +5 −1 Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestSuite; use PHPUnit\Util\ErrorHandler; use PHPUnit\Util\Test; /** * Listens for PHPUnit tests and fails those with invalid coverage annotations. Loading Loading @@ -60,7 +61,10 @@ private function checkValidCoversForTest(TestCase $test) { return; } // Gather our annotations. $annotations = $test->getAnnotations(); $annotations = Test::parseTestMethodAnnotations( static::class, $test->getName() ); // Glean the @coversDefaultClass annotation. $default_class = ''; $valid_default_class = FALSE; Loading
core/tests/Drupal/Tests/TestRequirementsTrait.php +4 −1 Original line number Diff line number Diff line Loading @@ -51,7 +51,10 @@ protected function checkRequirements() { $root = static::getDrupalRoot(); // Check if required dependencies exist. $annotations = $this->getAnnotations(); $annotations = Test::parseTestMethodAnnotations( static::class, $this->getName() ); if (!empty($annotations['class']['requires'])) { $this->checkModuleRequirements($root, $annotations['class']['requires']); } Loading