By mradcliffe on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
9.0.x
Introduced in version:
9.0.0-alpha1
Issue links:
Description:
The following test traits were completely removed from Drupal 9 because these did not contain any non-deprecated methods. You should remove any use statements mentioning these traits.
- Drupal\TestTools\PhpunitCompatibility\PhpUnit6\FileFieldTestBaseTrait - See the associated change record: https://www.drupal.org/node/3057326
- Drupal\TestTools\PhpunitCompatibility\PhpUnit6\TestCompatibilityTrait - See the associated change record: https://www.drupal.org/node/3082086
- Drupal\TestTools\PhpunitCompatibility\PhpUnit7\FileFieldTestBaseTrait - This file had no methods.
- Drupal\TestTools\PhpunitCompatibility\PhpUnit7\TestCompatibilityTrait - See the associated change record: https://www.drupal.org/node/3082086
- Drupal\Tests\Core\Assert\KernelAssertLegacyTestTrait - See the associated change record: https://www.drupal.org/node/3082086
- Drupal\Tests\PhpunitCompatibilityTrait - See associated change record: https://www.drupal.org/node/2907725. Additionally the @deprecated comments for methods in this trait were incorrect. The createMock method no longer exists because the trait has been removed. The comment should instead suggest to use the
PHPUnit\Framework\TestCase::createMockmethod which is available to any test class extending Drupal's PHPUnit based test classes.
The following internal test classes were removed:
- Drupal\FunctionalTests\BrowserTestBaseLegacyTest
- Drupal\Tests\Core\Test\KernelBaseTest
- Drupal\Tests\PhpunitCompatibilityTraitTest
- Drupal\Tests\UnitTestCaseDeprecationTest
Impacts:
Module developers