Problem/Motivation
While removing deprecation this keeps popping up for people
Fail Other MigrationTest.php 36 Drupal\Tests\migrate\Unit\Migration
Drupal\Tests\migrate\Unit\MigrationTest::testMigrationDependenciesInConstructor
with data set "invalid key" (array(array()))
This test did not perform any assertions
/builds/issue/drupal-3443198/core/tests/Drupal/Tests/Listeners/DrupalListener.php:62
/builds/issue/drupal-3443198/vendor/phpunit/phpunit/src/Framework/TestResult.php:453
/builds/issue/drupal-3443198/vendor/phpunit/phpunit/src/Framework/TestResult.php:981
/builds/issue/drupal-3443198/vendor/phpunit/phpunit/src/Framework/TestSuite.php:685
/builds/issue/drupal-3443198/vendor/phpunit/phpunit/src/Framework/TestSuite.php:685
/builds/issue/drupal-3443198/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:651
/builds/issue/drupal-3443198/vendor/phpunit/phpunit/src/TextUI/Command.php:146
/builds/issue/drupal-3443198/vendor/phpunit/phpunit/src/TextUI/Command.php:99
Steps to reproduce
Proposed resolution
TBD
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3443255
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3443255-random-test-failure
changes, plain diff MR !7778
Comments
Comment #2
quietone commentedThis should be added to the meta for random failures so we can keep track of it.
There are special issue titles used in Drupal core, and there is one for random test failures. And there are guidelines (that need updating) for handling random test failures.
Comment #5
mikelutzComment #6
mikelutzAt https://git.drupalcode.org/project/drupal/-/commit/166f3a39e466c2870dcb6... we removed a check and deprecation, but we should have replaced the deprecation with an exception. We removed the deprecation check from the test which left no assertions, but it should have been turned into an exception check.
Comment #7
smustgrave commentedThanks for fixing this!
Comment #8
mikelutzComment #10
catchCommitted/pushed to 11.x, thanks!