Skip to content

Conversation

@dhuf
Copy link
Member

@dhuf dhuf commented Nov 7, 2024

No description provided.

@d-s-codappix
Copy link

@dhuf #32 should fix the failing tests.

* Add necessary TypoScript Configuration

The tests use `f:format.html` ViewHelper.
This will call the `ContentObjectRenderer::parseFunc`.

The default is to use `lib.parseFunc_RTE` as a reference.
But this didn't exist within our test setup, leading to errors.
We now ensure this path provides some configuration to pass the test.

* Follow PHPUnit naming schema for Test Cases

Our abstract TestCase wasn't named as one, leading to a PHPUnit warning.
We therefore adjust the naming to follow the convention and prevent any
warning.

* Ensure Database cache backend is used

As our tests use the database table to verify proper cache handling.
The testing framework replaced the defaults with `NullBackend` for
performance reasons.

* Solve PHPUnit Deprecation

DataProvider need to be static.

* Fix none working DataHandler tests

Pass necessary arguments to calls.
Migrate from unnecessary prophecy to native PHPUnit API.
@dhuf dhuf requested a review from jrenggli April 23, 2025 06:32
@dhuf dhuf merged commit 97fba92 into main May 1, 2025
9 checks passed
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.

2 participants