Project

General

Profile

Actions

Task #103668

open

Avoid usage of ConnectionPool in extbase functional tests

Added by Torben Hansen 14 days ago. Updated 9 days ago.

Status:
New
Priority:
Should have
Assignee:
Category:
Extbase
Target version:
-
Start date:
2024-04-18
Due date:
% Done:

0%

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.

Actions #1

Updated by Christian Kuhn 9 days 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.

Actions

Also available in: Atom PDF