Ecodev /
artisans
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace ApplicationTest\Repository; |
||
| 6 | |||
| 7 | use Application\Model\Order; |
||
| 8 | use Application\Repository\OrderRepository; |
||
| 9 | use ApplicationTest\Traits\LimitedAccessSubQuery; |
||
| 10 | |||
| 11 | class OrderRepositoryTest extends AbstractRepositoryTest |
||
| 12 | { |
||
| 13 | use LimitedAccessSubQuery; |
||
| 14 | |||
| 15 | private OrderRepository $repository; |
||
| 16 | |||
| 17 | protected function setUp(): void |
||
| 18 | { |
||
| 19 | parent::setUp(); |
||
| 20 | $this->repository = _em()->getRepository(Order::class); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function providerGetAccessibleSubQuery(): iterable |
||
| 24 | { |
||
| 25 | $all = [16000, 16001, 16002, 16003, 16004]; |
||
| 26 | $family = $all; |
||
|
0 ignored issues
–
show
Unused Code
introduced
by
Loading history...
|
|||
| 27 | yield ['anonymous', []]; |
||
| 28 | yield ['member', [16000, 16004]]; |
||
| 29 | yield ['facilitator', $all]; |
||
| 30 | yield ['administrator', $all]; |
||
| 31 | } |
||
| 32 | } |
||
| 33 |