Code Duplication    Length = 15-15 lines in 4 locations

Tests/Mapping/ArrayMappingTest.php 1 location

@@ 205-219 (lines=15) @@
202
    /**
203
     * @test
204
     */
205
    public function shouldWakeUpInnerMapping()
206
    {
207
        /** @var ContainerInterface $container */
208
        $container = $this->createMock(ContainerInterface::class);
209
210
        $this->mappingA->expects($this->once())->method("wakeUpMapping")->with(
211
            $this->equalTo($container)
212
        );
213
214
        $this->mappingB->expects($this->once())->method("wakeUpMapping")->with(
215
            $this->equalTo($container)
216
        );
217
218
        $this->arrayMapping->wakeUpMapping($container);
219
    }
220
221
}
222

Tests/Mapping/ChoiceMappingTest.php 1 location

@@ 246-260 (lines=15) @@
243
    /**
244
     * @test
245
     */
246
    public function shouldWakeUpInnerMapping()
247
    {
248
        /** @var ContainerInterface $container */
249
        $container = $this->createMock(ContainerInterface::class);
250
251
        $this->optionMappingA->expects($this->once())->method("wakeUpMapping")->with(
252
            $this->equalTo($container)
253
        );
254
255
        $this->optionMappingB->expects($this->once())->method("wakeUpMapping")->with(
256
            $this->equalTo($container)
257
        );
258
259
        $this->choiceMapping->wakeUpMapping($container);
260
    }
261
262
}
263

Tests/Mapping/EntityMappingTest.php 1 location

@@ 173-187 (lines=15) @@
170
    /**
171
     * @test
172
     */
173
    public function shouldWakeUpInnerMapping()
174
    {
175
        /** @var ContainerInterface $container */
176
        $container = $this->createMock(ContainerInterface::class);
177
178
        $this->fieldMappingA->expects($this->once())->method("wakeUpMapping")->with(
179
            $this->equalTo($container)
180
        );
181
182
        $this->fieldMappingB->expects($this->once())->method("wakeUpMapping")->with(
183
            $this->equalTo($container)
184
        );
185
186
        $this->entityMapping->wakeUpMapping($container);
187
    }
188
189
}
190

Tests/Mapping/ObjectMappingTest.php 1 location

@@ 361-375 (lines=15) @@
358
    /**
359
     * @test
360
     */
361
    public function shouldWakeUpInnerMapping()
362
    {
363
        /** @var ContainerInterface $container */
364
        $container = $this->createMock(ContainerInterface::class);
365
366
        $this->factory->expects($this->once())->method("wakeUpCall")->with(
367
            $this->equalTo($container)
368
        );
369
370
        $this->serializer->expects($this->once())->method("wakeUpCall")->with(
371
            $this->equalTo($container)
372
        );
373
374
        $this->objectMapping->wakeUpMapping($container);
375
    }
376
377
}
378