Tecla is a testing tool that helps ensure your Drupal tests accurately reflect a site where extensions might be disabled. It prevents classes from uninstalled modules from being loaded during tests, providing a more realistic testing environment.
Tecla is a very simple PHPUnit test helper tool. It provides a workaround for unnecessarily registered classes of disabled/uninstalled extensions what happens if you are running PHPUnit tests (see #2006476: Strengthen tests by not autoregistering non-test namespaces of disabled modules.).
The workaround is pretty simple: it is driven by a service provider which removes the appropriate PSR4 mappings from Drupal's class loader. The solution uses reflectors, so it has some performance impact, but the benefit is a more realistic behavior during testing.
Ask your assistant about Test Classmap Cleanup (for PHPUnit tests)
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.0 | Stable | 9–11 | Jun 29, 2024 |