Kernel Tests: Errors and Deprecation

Created on 1 April 2024, 8 months ago
Updated 1 June 2024, 6 months ago

Problem/Motivation

When I run kernel tests, I get these errors/risky tests/deprecations:

There was 1 error:

1) Drupal\Tests\mailsystem\Kernel\d7\MailSystemMigrateTest::testMailSystemMigration
PHPUnit\Framework\Exception: Unavailable module: 'color'. If this module needs to be downloaded separately, annotate the test class with '@requires module color'.

/opt/drupal/web/core/tests/Drupal/KernelTests/KernelTestBase.php:541
/opt/drupal/web/core/tests/Drupal/KernelTests/KernelTestBase.php:384
/opt/drupal/web/core/tests/Drupal/KernelTests/KernelTestBase.php:258
/opt/drupal/web/core/modules/migrate/tests/src/Kernel/MigrateTestBase.php:67
/opt/drupal/web/core/modules/migrate_drupal/tests/src/Kernel/MigrateDrupalTestBase.php:31
/opt/drupal/web/core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7TestBase.php:20
/opt/drupal/vendor/phpunit/phpunit/src/Framework/TestResult.php:729

--

There was 1 risky test:

1) Drupal\Tests\mailsystem\Kernel\d7\MailSystemMigrateTest::testMailSystemMigration
This test did not perform any assertions

/opt/drupal/web/core/tests/Drupal/Tests/Listeners/DrupalListener.php:62
/opt/drupal/vendor/phpunit/phpunit/src/Framework/TestResult.php:453
/opt/drupal/vendor/phpunit/phpunit/src/Framework/TestSuite.php:685
/opt/drupal/vendor/phpunit/phpunit/src/Framework/TestSuite.php:685
/opt/drupal/vendor/phpunit/phpunit/src/Framework/TestSuite.php:685
/opt/drupal/vendor/phpunit/phpunit/src/Framework/TestSuite.php:685
/opt/drupal/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:651
/opt/drupal/vendor/phpunit/phpunit/src/TextUI/Command.php:146
/opt/drupal/vendor/phpunit/phpunit/src/TextUI/Command.php:99

ERRORS!
Tests: 1, Assertions: 0, Errors: 1, Risky: 1.

Remaining self deprecation notices (1)

1x: The Drupal\Tests\field\Traits\EntityReferenceTestTrait is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Instead, use \Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait. See https://www.drupal.org/node/3401941
1x in KernelTestSuite::suite from Drupal\Tests\TestSuites

Steps to reproduce

Run phpunit --testsuite="kernel" --group="mailsystem"

🐛 Bug report
Status

Closed: duplicate

Version

4.4

Component

Code

Created by

🇨🇦Canada ryanrobinson_wlu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024