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

Reference: https://www.drupal.org/core/beta-changes
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.
CommentFileSizeAuthor
#2 2388043-2.patch598 bytesdaffie

Comments

daffie’s picture

Is a duplicate of #2387915: Delete DrupalUnitTestBase completely. I have created that issue 2 hours before this one.

daffie’s picture

Status: Active » Needs review
StatusFileSize
new598 bytes

Deleted DrupalUnitTestBase.php.

mile23’s picture

Status: Needs review » Reviewed & tested by the community

Patch in #2 does, indeed, delete DrupalUnitTestBase.

Will need to update the change notice.

daffie’s picture

Does the testbot need an update?

mile23’s picture

If it's passing without this class, I'd wager no.

82,099 pass(es).

  • catch committed 8606a8d on 8.0.x
    Issue #2388043 by daffie: Remove DrupalUnitTestBase
    
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.0.x, thanks!

mile23’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.