We currenctly have five test base classes:
- TestBase: abstract, contains absolute basic functionality.
- UnitTestBase: Simpletest unit testing base class.
- UnitTestCase: PHPUnit unit testing base class.
- DrupalUnitTestBase: Simpletest unit testing base class with an initialized, but empty/mock Drupal installation.
- WebTestBase: a functional/web testing base class with a fully initialized Drupal installation.
I suggest we change three of five class names to make them more self-descriptive:
- UnitTestCase becomes PHPUnitTestBase. Once the migration from UnitTestBase to PHPUnitTestBase is completed, we rename PHPUnitTestBase to simply UnitTestBase again.
- DrupalUnitTestBase becomes EmptyEnvironmentTestBase
- WebTestBase becomes FullEnvironmentTestBase
Comments
Comment #1
clemens.tolboomIs this similar to #1446366: [meta] Multiple web test classes mislabeled as unit tests. simpletest ([Web|Unit|DrupalUnit]TestBase) (by FransK)
Comment #2
xanoNo. That issue renames test classes that can be run. This issue is about renaming the base classes so the five names make sense.
Comment #11
quietone commentedTriaging issues in simpletest.module to determine if they should be in the Simpletest Project or core.
This looks like it a Phpunit issue, changing component.
Comment #12
mondrakeWell things changed a lot since last comment - core no longer supports Simpletest, that was removed from codebase, and tests are conveniently grouped in testsuites.