Problem/Motivation
When I run kernel tests, I get these errors and deprecations:
There was 1 error:
1) Drupal\Tests\views_data_export\Kernel\Plugin\views\style\DataExportTest::testCalculateDependencies
PHPUnit\Framework\Exception: Unavailable module: 'xls_serialization'. If this module needs to be downloaded separately, annotate the test class with '@requires module xls_serialization'.
/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/views/tests/src/Kernel/ViewsKernelTestBase.php:48
/opt/drupal/web/modules/contrib/views_data_export/tests/src/Kernel/Plugin/views/style/DataExportTest.php:40
/opt/drupal/vendor/phpunit/phpunit/src/Framework/TestResult.php:729
--
There was 1 risky test:
1) Drupal\Tests\views_data_export\Kernel\Plugin\views\style\DataExportTest::testCalculateDependencies
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="views_data_export"