Task #103668
closed
Avoid usage of ConnectionPool in extbase functional tests
Added by Torben Hansen 7 months ago.
Updated 5 months ago.
Description
It should be avoided to verify test results using ConnectionPool
and direct database queries. Instead, $this->assertCSVDataSet
should be used.
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.
- Status changed from New to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF