Repository navigation
[TASK] Refactor tests to Build/Scripts directory and fix CI for v7 - #297
Merged
d-g-codappix merged 6 commits intoNov 12, 2026
Merged
Conversation
findAll() is typed to return DomainObjectInterface objects, so PHPStan reports the calls to getTitle() and getParent() as undefined methods. Skip every object that is not a Category, as already done in main with 8d2a3c2.
The repository methods findByUids() and findDemanded() are only used by the frontend plugin. The test faked a backend request, and since TYPO3 13.4.37 / 14.3.7 Extbase ignores enable fields in backend context, so hidden products were returned and the test failed. The test now fakes a frontend request with an empty TypoScript setup, which Extbase's frontend configuration manager requires. (cherry picked from commit d8ad00a)
d-g-codappix
force-pushed
the
run-product-repository-test-in-frontend-context-for-v7
branch
from
November 11, 2026 23:58
adc663f to
2c00cad
Compare
The tests should be executable for local testing and GitHub Actions with nearly the same context. The composer scripts, the nix-shell commands and the CI workflow now call the same scripts in Build/Scripts, which also lift the PHP memory limit. The composer scripts are renamed from test:* to project:* like in main. The broken rector scripts (rector is not required) and the aggregating scripts test:php and test:all are removed. The unit and functional tests in the CI workflow no longer need nix and run in a php-version matrix. Backport of a3ad847 from main.
The waitForText waits up to 5 seconds. The see checks immediatly for the string. If the server (test) takes a little bit longer the test will fail. (cherry picked from commit e00ffe4)
The acceptance tests were only executable via nix-shell. They now use Build/Scripts/acceptance.sh like the other tests. The script is called by the new composer script project:test:acceptance, the nix-shell command project-test-acceptance and the CI workflow. The CI workflow no longer needs nix and runs the acceptance tests in a php-version matrix. On failure the acceptance reports are uploaded as artifact. The script stops the php webserver and geckodriver on exit, even if the tests fail. Backport of 5570b5e from main.
d-g-codappix
deleted the
run-product-repository-test-in-frontend-context-for-v7
branch
November 12, 2026 00:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The repository methods findByUids() and findDemanded() are only used by the frontend plugin. The test faked a backend request, and since TYPO3 13.4.37 / 14.3.7 Extbase ignores enable fields in backend context, so hidden products were returned and the test failed.
The test now fakes a frontend request with an empty TypoScript setup, which Extbase's frontend configuration manager requires.
(cherry picked from commit d8ad00a)