Problem/Motivation

There's a lot of bolierplate in DriverSpecificTransactionTestBase - that was accumulated by copy/pasting test methods.

Proposed resolution

Introduce some helpers and cleanup boilerplate.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3407979

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mondrake created an issue. See original summary.

mondrake’s picture

Status: Active » Needs review
smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Seems moving the assertions to their own function still covers the original. Tests are green and no coverage appears to have been lost. LGTM.

quietone’s picture

Status: Reviewed & tested by the community » Needs review

I read the comments and carefully went through the MR. This does look like a nice bit of cleanup and helps with readability. I just have a question about the removal of $this->cleanUp(); in two instances.

Setting to Needs review for an answer.

mondrake’s picture

Status: Needs review » Reviewed & tested by the community

  • quietone committed 5cce3470 on 11.x
    Issue #3407979 by mondrake, smustgrave: Cleanup...
quietone’s picture

Status: Reviewed & tested by the community » Fixed

@mondrake, thanks for the explanation.

Committed 5cce347 and pushed to 11.x. Thanks!

Status: Fixed » Closed (fixed)

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