Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use subrequest for functional LoggerFinisher tests #257

Merged
merged 5 commits into from
Mar 3, 2025

Conversation

mbrodala
Copy link
Member

@mbrodala mbrodala commented Mar 3, 2025

No description provided.

This will allow us to access helper code for tests.
These provide additional logic for functional form testing.
Use a regular subrequest to fetch and submit forms with data.

This allows us to drop all kinds of mocking and fake environment setup.
Also we do not need to know about the internals of the Form framework
anymore.

The hardest part was testing file uploads which evidently do not work
with stream-based uploaded files. When using the StreamFactoryInterface
to create one and "upload" such a file, Extbase/Form will not accept
this file since there is no "tmp_name" internally. This only works with
phyisically created temporary files just like we did before.
@mbrodala mbrodala force-pushed the logger-finisher-test-sub-request branch from 26bb102 to 748b72e Compare March 3, 2025 09:06
@mbrodala mbrodala merged commit dd72b57 into master Mar 3, 2025
4 checks passed
@mbrodala mbrodala deleted the logger-finisher-test-sub-request branch March 3, 2025 09:09
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