mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2025-03-23 20:03:50 +01:00

[BUGFIX] Use executeQuery() in functional test example ()

This avoids potential false results in the tests because it doesn't add additional restrictions for starttime, endtime, deleted, and hidden.

Fixes 
This commit is contained in:
Mathias Bolt Lesniak 2022-04-11 14:15:43 +02:00 committed by GitHub
parent 228a094cd7
commit 3ca00b78e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -131,7 +131,10 @@ class TeaRepositoryTest extends FunctionalTestCase
$connection = $this->getConnectionPool()
->getConnectionForTable('tx_tea_domain_model_product_tea');
$databaseRow = $connection->select(['*'], 'tx_tea_domain_model_product_tea', ['uid' => $model->getUid()])
$databaseRow = $connection
->executeQuery(
'SELECT * FROM tx_tea_domain_model_product_tea WHERE uid = ' . $model->getUid()
)
->fetchAssociative();
self::assertSame($title, $databaseRow['title']);