Problem/Motivation

This issue enables #2807237: PHPUnit initiative

This issue comes from deciding scope for #2803621: Break BrowserTestBase & children dependency on Simpletest, deprecate stub BC traits

If you search core/tests for \simpletest\, you discover that there are 10 files which depend on the simpletest module being installed (or at least autoloadable).

This is bad because we want to get rid of dependencies on simpletest so we can get rid of simpletest.

These fall into two categories:

1) Test traits which are used by PHPUnit-based tests (including KernelTestBase and BrowserTestBase), but are declared within the simpletest module.

The solution to this problem is confused by the fact that there are two non-simpletest locations for test traits: core/lib/Drupal/Core/Test and core/tests/Drupal/Tests. To further confuse matters, core/tests/Drupal/Tests has a Traits subdirectory, which seems to be in use for some traits, but not for others.

2) TestSuiteBase which uses Drupal\simpletest\TestDiscovery.

TestDiscovery could be moved to a different directory, but it is also a service used by core, and should perhaps not be available when the simpletest module is not installed. #2863055: Move TestDiscovery out of simpletest module, minimize dependencies

Proposed resolution

Figure out where to move stuff.

Remaining tasks

Come up with rules about which directories are for traits.

User interface changes

API changes

Data model changes

Comments

Mile23 created an issue. See original summary.

Mile23’s picture

Mile23’s picture

Issue summary: View changes
michielnugter’s picture

Issue tags: +phpunit initiative
Mile23’s picture

Issue summary: View changes

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Mile23’s picture

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Mile23’s picture

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Mile23’s picture

jibran’s picture

Is this done now?

Mile23’s picture

See child issues, and especially #2866082: [Plan] Roadmap for Simpletest

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Mile23’s picture

Status: Active » Fixed

As per the issue summary, searching core/tests/ for \simpletest\ results in either docblock or test data results.

All the child issues are closed.

Marking this as fixed.

Status: Fixed » Closed (fixed)

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