mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-24 21:36:12 +01:00

[TASK] Test that TeaRepository.findByOwnerUid ignores the storage PID (#1227)

This commit is contained in:
Oliver Klee 2024-04-15 07:21:27 +02:00 committed by GitHub
parent 781c6f6521
commit e9019ddae8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,3 @@
"tx_tea_domain_model_tea"
,"uid","pid","title","owner"
,1,1,"Earl Grey",1
Can't render this file because it has a wrong number of fields in line 2.

View file

@ -144,6 +144,18 @@ final class TeaRepositoryTest extends FunctionalTestCase
self::assertCount(1, $result); self::assertCount(1, $result);
} }
/**
* @test
*/
public function findByOwnerUidFindsTeaWithTheGivenOwnerUidOnPage(): void
{
$this->importCSVDataSet(__DIR__ . '/Fixtures/TeaWithOwnerOnPage.csv');
$result = $this->subject->findByOwnerUid(1);
self::assertCount(1, $result);
}
/** /**
* @test * @test
*/ */