Skip to content

[BUGFIX] Enforce classic mode in created TYPO3 entrypoint files#661

Merged
sbuerk merged 1 commit intomainfrom
main-stefan-1
Dec 3, 2024
Merged

[BUGFIX] Enforce classic mode in created TYPO3 entrypoint files#661
sbuerk merged 1 commit intomainfrom
main-stefan-1

Conversation

@sbuerk
Copy link
Collaborator

@sbuerk sbuerk commented Dec 2, 2024

typo3/testing-framework provides a extended SystemEnvironmentBuilder
to ensure correct instance initialization as classic mode in different
test context environment, allowing to manual set the composer mode flag
despite having the PHP define from parent composer installation as source.

Testbase->setUpInstanceCoreLinks() additionally provides TYPO3 entrypoints
in form of index.php files, calling the basic bootstrap, based on template
files from system extensions and modified to use the typo3/testing-framework
SystemEnvironmentBuilder but does not enforce non-composer (classic) mode.
This does not hurt within functional tests but codeception based accceptance
instances misses the enforced classic mode which can lead to several issues,
for example normalizedParams path calculation as basis for additional path
or link generation.

This change modifies the entrypoint creation code to reflect this need and
forces non-composer mode.

Releases: main, 8

`typo3/testing-framework` provides a extended `SystemEnvironmentBuilder`
to ensure correct instance initialization as classic mode in different
test context environment, allowing to manual set the composer mode flag
despite having the PHP define from parent composer installation as source.

`Testbase->setUpInstanceCoreLinks()` additionally provides TYPO3 entrypoints
in form of index.php files, calling the basic bootstrap, based on template
files from system extensions and modified to use the `typo3/testing-framework`
`SystemEnvironmentBuilder` but does not enforce non-composer (classic) mode.
This does not hurt within functional tests but codeception based accceptance
instances misses the enforced classic mode which can lead to several issues,
for example normalizedParams path calculation as basis for additional path
or link generation.

This change modifies the entrypoint creation code to reflect this need and
forces non-composer mode.

Releases: main, 8
@sbuerk sbuerk merged commit 4d0c36f into main Dec 3, 2024
@sbuerk sbuerk deleted the main-stefan-1 branch December 3, 2024 07:37
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.

1 participant