standardize docs on how to use the 4 types of test base

Created on 24 October 2019, about 5 years ago
Updated 20 August 2024, 4 months ago

Problem/Motivation

Class docs for BrowserTestBase helpfully say:

 * Tests extending BrowserTestBase must exist in the
 * Drupal\Tests\yourmodule\Functional namespace and live in the
 * modules/yourmodule/tests/src/Functional directory.

The base classes for the other 3 types of test should say something similar: Drupal\Tests\UnitTestCase, Drupal\KernelTests\KernelTestBase, Drupal\FunctionalJavascriptTests\WebDriverTestBase.

Steps to reproduce

Proposed resolution

The base classes for the other 3 types of test should say something similar: Drupal\Tests\UnitTestCase, Drupal\KernelTests\KernelTestBase, Drupal\FunctionalJavascriptTests\WebDriverTestBase.

Remaining tasks

Add followup to provide details of where core tests, not in core modules, should live.

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Fixed

Version

11.0 πŸ”₯

Component
DocumentationΒ  β†’

Last updated about 1 hour ago

No maintainer
Created by

πŸ‡¬πŸ‡§United Kingdom joachim

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024