mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-12-25 08:46:10 +01:00
[TASK] Test that TeaRepository.findByOwnerUid
ignores the storage PID (#1227)
This commit is contained in:
parent
781c6f6521
commit
e9019ddae8
2 changed files with 15 additions and 0 deletions
|
@ -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.
|
|
@ -144,6 +144,18 @@ final class TeaRepositoryTest extends FunctionalTestCase
|
|||
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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue