Change record status: 
Project: 
Introduced in branch: 
11.5.x
Introduced in version: 
11.5.0
Description: 

Kernel test classes can provide their own routes with methods using the Symfony\Component\Routing\Route attribute. This can be used in conjunction with drupalGet() in a test method, so that any routes that are used exclusively for the test can be defined within the test class, without the need code is a separate module.

Impacts: 
Module developers