All unit tests are in PHPUnit now.
Simpletest UnitTestBase tests (1) have never been isolated enough, (2) were primarily used by Drupal core, and (3) are converted into much more sophisticated PHPUnit tests.
- Remove the
UnitTestBaseclass. - Adjust the (Simpletest)
KernelTestBaseaccordingly (moving a few lines fromsetUp()+ derive fromTestBaseinstead).
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 2324789-unittestbase-4.patch | 4.37 KB | tim.plunkett |
| #4 | interdiff.txt | 1.01 KB | tim.plunkett |
| #2 | 2324789-unittestbase-2.patch | 3.82 KB | tim.plunkett |
Comments
Comment #1
berdirThis is unblocked now.
Comment #2
tim.plunkettComment #4
tim.plunkettTestBase::setUp is abstract, you can't call parent::
Comment #5
berdirGreat.
We need to update https://www.drupal.org/node/1829160 when this is done, possibly some others too, as well as documentation (examples.module...)
Comment #6
catchCommitted/pushed to 8.0.x, thanks!
Comment #8
catchComment #9
berdirThere was actually nothing relevant to update there, just added a note that it no longer exists in Drupal 8.
Also searched for UnitTestBase in change records and updated a few (mostly DrupalUnitTestBase left-overs or related change records, actually).