Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Follow-up to #2350291: [META] Replace extend of deprecated DrupalUnitTestBase with KernelTestBase
Problem/Motivation
In core\modules\simpletest\src\DrupalUnitTestBase.php:
<?php
/**
* Base class for integration tests.
*
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
* Use \Drupal\simpletest\KernelTestBase.
*/
?>
Proposed resolution
Replace extend of deprecated DrupalUnitTestBase with KernelTestBase for the following test cases:
field/src/Tests/FieldUnitTestBase.php
Comment | File | Size | Author |
---|---|---|---|
#1 | core-field-replace_extend_of-2350571-1.patch | 660 bytes | mitrpaka |
Comments
Comment #1
mitrpaka CreditAttribution: mitrpaka commentedComment #2
swentel CreditAttribution: swentel commentedThanks!
Comment #3
webchickCommitted and pushed to 8.x. Thanks!