Skip to content

Conversation

@sbuerk
Copy link
Member

@sbuerk sbuerk commented Aug 18, 2025

This changes adds the ExtensionLoadedTest as first
test along with a AbstractFunctionalTestCase class
to test basic things without testing extension code
directly, for example:

  • Ensure that using AbstractFunctionalTestCase loads the
    extension itself and the TYPO3 instance can find it using
    the EXTENSION_KEY and COMPOSER_PACKAGE_NAME declared
    in the root composer.json of the extension.

  • Bootstraping extension with the instance already checks for
    derecated api or other deprecation including automatic TCA
    migration emitting E_USER_DEPRECATED by the for. It also
    reveales related issues directly like Services.yaml issues.

Beside acting as a first test, this test provides a simple base
test for the abstract testcase class and basic bootstrap related
issues helping on updates to use it as single test, as it may be
harder to find systematic issues with a later complete test suite.

Used command(s):

Build/Scripts/runTests.sh -p 7.4 -t 11 -s composerUpdate \
&& Build/Scripts/runTests.sh -p 7.4 -t 11 -s cgl

This changes adds the `ExtensionLoadedTest` as first
test along with a `AbstractFunctionalTestCase` class
to test basic things without testing extension code
directly, for example:

* Ensure that using `AbstractFunctionalTestCase` loads the
  extension itself and the TYPO3 instance can find it using
  the `EXTENSION_KEY` and `COMPOSER_PACKAGE_NAME` declared
  in the root `composer.json` of the extension.

* Bootstraping extension with the instance already checks for
  derecated api or other deprecation including automatic TCA
  migration emitting `E_USER_DEPRECATED` by the for. It also
  reveales related issues directly like `Services.yaml` issues.

Beside acting as a first test, this test provides a simple base
test for the abstract testcase class and basic bootstrap related
issues helping on updates to use it as single test, as it may be
harder to find systematic issues with a later complete test suite.

Used command(s):

```bash
Build/Scripts/runTests.sh -p 7.4 -t 11 -s composerUpdate \
&& Build/Scripts/runTests.sh -p 7.4 -t 11 -s cgl
```
@sbuerk sbuerk merged commit 15d253a into master Aug 18, 2025
26 checks passed
@sbuerk sbuerk deleted the stefan-1 branch August 18, 2025 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants