Problem/Motivation
Drupal\simpletest\DrupalUnitTestBase has been marked as deprecated, and should be removed before an 8.0.0 release.
DrupalUnitTestBase was refactored out of use in favor of KernelTestBase in this issue: #2347999: DrupalUnitTestBase is deprecated, replace with KernelTestBase
Proposed resolution
Finally remove DrupalUnitTestBase itself.
Remaining tasks
- Write patch.
- Approve patch.
- Commit patch.
User interface changes
API changes
This change finalizes an API change from DrupalUnitTestBase to KernelTestBase. This issue and its predecessors don't actually change the behavior of SimpleTest-based testing, but just the name of the base class for these tests.
Beta phase evaluation
| Prioritized changes | Prioritized because this issue finalizes a code/API deprecation. |
|---|---|
| Disruption | This change will mostly be disruptive to existing patches and contrib modules under development. |
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2388043-2.patch | 598 bytes | daffie |
Comments
Comment #1
daffie commentedIs a duplicate of #2387915: Delete DrupalUnitTestBase completely. I have created that issue 2 hours before this one.
Comment #2
daffie commentedDeleted DrupalUnitTestBase.php.
Comment #3
mile23Patch in #2 does, indeed, delete
DrupalUnitTestBase.Will need to update the change notice.
Comment #4
daffie commentedDoes the testbot need an update?
Comment #5
mile23If it's passing without this class, I'd wager no.
Comment #7
catchCommitted/pushed to 8.0.x, thanks!
Comment #8
mile23Updated change notice: https://www.drupal.org/node/2271271