mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-12-22 18:46:11 +01:00
[BUGFIX] Use executeQuery()
in functional test example (#422)
This avoids potential false results in the tests because it doesn't add additional restrictions for starttime, endtime, deleted, and hidden. Fixes #421
This commit is contained in:
parent
228a094cd7
commit
3ca00b78e4
1 changed files with 4 additions and 1 deletions
|
@ -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']);
|
||||
|
|
Loading…
Reference in a new issue