Kernel Test Failures

Created on 1 April 2024, 3 months ago
Updated 10 April 2024, 3 months ago

Problem/Motivation

I get a few errors (3), failures (3), and self deprecation warning (1) when I run the kernel tests on core 10.2.4.

There were 3 errors:

1) Drupal\Tests\better_exposed_filters\Kernel\Plugin\sort\SortWidgetKernelTest::testCombineSortOptions
Undefined array key "sort_bef_combine"

/opt/drupal/web/modules/contrib/better_exposed_filters/tests/src/Kernel/Plugin/sort/SortWidgetKernelTest.php:47
/opt/drupal/vendor/phpunit/phpunit/src/Framework/TestResult.php:729

2) Drupal\Tests\better_exposed_filters\Kernel\Plugin\sort\SortWidgetKernelTest::testCombineRewriteSortOptions
Undefined array key "sort_bef_combine"

/opt/drupal/web/modules/contrib/better_exposed_filters/tests/src/Kernel/Plugin/sort/SortWidgetKernelTest.php:85
/opt/drupal/vendor/phpunit/phpunit/src/Framework/TestResult.php:729

3) Drupal\Tests\better_exposed_filters\Kernel\Plugin\sort\SortWidgetKernelTest::testResetSortOptions
Undefined array key "sort_bef_combine"

/opt/drupal/web/modules/contrib/better_exposed_filters/tests/src/Kernel/Plugin/sort/SortWidgetKernelTest.php:123
/opt/drupal/vendor/phpunit/phpunit/src/Framework/TestResult.php:729

--

There were 3 failures:

1) Drupal\Tests\better_exposed_filters\Kernel\Plugin\sort\LinksSortWidgetKernelTest::testExposedLinks
Exposed sort "sort_by" has correct number of exposed links.
Failed asserting that actual size 0 matches expected size 1.

/opt/drupal/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:122
/opt/drupal/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:56
/opt/drupal/web/modules/contrib/better_exposed_filters/tests/src/Kernel/Plugin/sort/LinksSortWidgetKernelTest.php:41
/opt/drupal/vendor/phpunit/phpunit/src/Framework/TestResult.php:729

2) Drupal\Tests\better_exposed_filters\Kernel\Plugin\sort\RadioButtonsSortWidgetKernelTest::testExposedRadioButtons
Exposed sort "sort_by" has correct number of exposed radio buttons.
Failed asserting that actual size 0 matches expected size 1.

/opt/drupal/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:122
/opt/drupal/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:56
/opt/drupal/web/modules/contrib/better_exposed_filters/tests/src/Kernel/Plugin/sort/RadioButtonsSortWidgetKernelTest.php:41
/opt/drupal/vendor/phpunit/phpunit/src/Framework/TestResult.php:729

3) Drupal\Tests\better_exposed_filters\Kernel\BetterExposedFiltersKernelTest::testSecondaryOptions
Exposed sort was placed in secondary fieldset.
Failed asserting that actual size 0 matches expected size 1.

/opt/drupal/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:122
/opt/drupal/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:56
/opt/drupal/web/modules/contrib/better_exposed_filters/tests/src/Kernel/BetterExposedFiltersKernelTest.php:109
/opt/drupal/vendor/phpunit/phpunit/src/Framework/TestResult.php:729

ERRORS!
Tests: 17, Assertions: 228, Errors: 3, Failures: 3.

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="better_exposed_filters"

πŸ› Bug report
Status

Closed: duplicate

Version

6.0

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.69.0 2024