Code Duplication    Length = 14-14 lines in 2 locations

Tests/CollectionLoadingTest.php 1 location

@@ 39-52 (lines=14) @@
36
                    ],
37
                ]
38
            ),
39
            function (RpcRequestInterface $request) {
40
                self::assertEquals('test-entity/search', $request->getMethod());
41
                self::assertEquals(
42
                    [
43
                        'criteria' => ['sub-payload' => 'sub-payload'],
44
                        'order'    => [],
45
                        'limit'    => null,
46
                        'offset'   => null,
47
                    ],
48
                    $request->getParameters()
49
                );
50
51
                return true;
52
            }
53
        );
54
55
        /** @var SubEntity[]|ArrayCollection $entities */

Tests/ReferenceLoadingTest.php 1 location

@@ 194-207 (lines=14) @@
191
                    ],
192
                ]
193
            ),
194
            function (RpcRequestInterface $request) {
195
                self::assertEquals('test-reference/search', $request->getMethod());
196
                self::assertEquals(
197
                    [
198
                        'criteria' => ['owner' => 1],
199
                        'order'    => [],
200
                        'limit'    => null,
201
                        'offset'   => null,
202
                    ],
203
                    $request->getParameters()
204
                );
205
206
                return true;
207
            }
208
        );
209
210
        /** @var SubEntity $entity */