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

@@ 259-272 (lines=14) @@
256
                    ],
257
                ]
258
            ),
259
            function (RpcRequestInterface $request) {
260
                self::assertEquals('test-reference/search', $request->getMethod());
261
                self::assertEquals(
262
                    [
263
                        'criteria' => ['owner' => 1],
264
                        'order'    => [],
265
                        'limit'    => null,
266
                        'offset'   => null,
267
                    ],
268
                    $request->getParameters()
269
                );
270
271
                return true;
272
            }
273
        );
274
275
        /** @var SubEntity $entity */