Ecodev /
my-ichtus
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace ApplicationTest\Repository; |
||
| 6 | |||
| 7 | use Application\Model\Message; |
||
| 8 | use Application\Repository\MessageRepository; |
||
| 9 | use ApplicationTest\Traits\LimitedAccessSubQuery; |
||
| 10 | |||
| 11 | class MessageRepositoryTest extends AbstractRepositoryTest |
||
| 12 | { |
||
| 13 | use LimitedAccessSubQuery; |
||
| 14 | |||
| 15 | private MessageRepository $repository; |
||
| 16 | |||
| 17 | protected function setUp(): void |
||
| 18 | { |
||
| 19 | parent::setUp(); |
||
| 20 | $this->repository = $this->getEntityManager()->getRepository(Message::class); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function providerGetAccessibleSubQuery(): iterable |
||
| 24 | { |
||
| 25 | // Nobody can see all messages for now, even administrator, because it's useless |
||
| 26 | $all = [11001, 11002]; |
||
|
0 ignored issues
–
show
Unused Code
introduced
by
Loading history...
|
|||
| 27 | yield ['anonymous', []]; |
||
| 28 | yield ['bookingonly', []]; |
||
| 29 | yield ['individual', []]; |
||
| 30 | yield ['member', [11001]]; |
||
| 31 | yield ['responsible', []]; |
||
| 32 | yield ['administrator', []]; |
||
| 33 | } |
||
| 34 | } |
||
| 35 |