Problem/Motivation

In order to allow InstallerNonDefaultDatabaseDriverTest execute, DatabaseDriverUninstallValidator::validate() needs to get a new connection set by the test than the one passed in construction.

We should not have to alter runtime execution paths to fulfill test requirements.

Proposed resolution

Refactor InstallerNonDefaultDatabaseDriverTest so that the injected connection be used.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3433034

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 work
mondrake’s picture

Issue summary: View changes
Status: Needs work » Needs review

IMO the test should have not been using the test container, that remains linked to the db driver passed in to the test. Since the essence of the test is to diverge from it in the SUT, let’s check the SUT’s GUI for the modules statuses.

smustgrave’s picture

Status: Needs review » Needs work

Left a comment in the MR.

mondrake’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Needs work

Small comment then good to RTBC I think

mondrake’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Needs Review Queue Initiative

Ah right.

Then rest seems good

  • catch committed e3894f6a on 11.x
    Issue #3433034 by mondrake, smustgrave: Refactor...
mondrake’s picture

This should be marked 'fixed' now, right?

catch’s picture

Status: Reviewed & tested by the community » Fixed

Yes it should, looks like I lost track of the tab...

Committed/pushed to 11.x, thanks!

Status: Fixed » Closed (fixed)

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