Code Duplication    Length = 19-20 lines in 2 locations

Tests/DiscriminatorTest.php 2 locations

@@ 68-87 (lines=20) @@
65
                    ],
66
                ]
67
            ),
68
            function (RpcRequestInterface $request) {
69
                self::assertEquals('discriminator/search', $request->getMethod());
70
                self::assertEquals(
71
                    [
72
                        'criteria' => [
73
                            'type' => [
74
                                strtolower('DiscriminatorBaseClass'),
75
                                strtolower('InheritorFirst'),
76
                                strtolower('InheritorSecond'),
77
                            ],
78
                        ],
79
                        'order'    => [],
80
                        'limit'    => null,
81
                        'offset'   => null,
82
                    ],
83
                    $request->getParameters()
84
                );
85
86
                return true;
87
            }
88
        );
89
90
        $entities = $this->getManager()->getRepository(DiscriminatorBaseClass::class)->findAll();
@@ 137-155 (lines=19) @@
134
                    ],
135
                ]
136
            ),
137
            function (RpcRequestInterface $request) {
138
                self::assertEquals('discriminator/search', $request->getMethod());
139
                self::assertEquals(
140
                    [
141
                        'criteria' => [
142
                            'type' => [
143
                                strtolower('InheritorFirst'),
144
                                strtolower('InheritorSecond'),
145
                            ],
146
                        ],
147
                        'order'    => [],
148
                        'limit'    => null,
149
                        'offset'   => null,
150
                    ],
151
                    $request->getParameters()
152
                );
153
154
                return true;
155
            }
156
        );
157
158
        $entities = $this->getManager()->getRepository(InheritorFirst::class)->findAll();