Actions
Task #103668
closedAvoid usage of ConnectionPool in extbase functional tests
Start date:
2024-04-18
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
Sprint Focus:
Description
It should be avoided to verify test results using ConnectionPool
and direct database queries. Instead, $this->assertCSVDataSet
should be used.
Updated by Christian Kuhn 7 months ago
I'd say: It depends ... I guess there are situations where firing a query to assert DB state is fine.
But I've also seen places - especially in extbase tests like persistence stuff - that would benefit when they assert csv files instead, and I remember I already changed various of them towards this. Please go ahead and do more.
Updated by Gerrit Code Review 7 months ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84153
Updated by Torben Hansen 7 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 9b398933ab6948d8494353cf41fcc38975a2cb8c.
Actions