Code Duplication    Length = 10-10 lines in 2 locations

eZ/Publish/Core/Persistence/Cache/Tests/LocationHandlerTest.php 1 location

@@ 39-48 (lines=10) @@
36
        ];
37
    }
38
39
    public function providerForCachedLoadMethods() : array
40
    {
41
        $object = new SPISection(['id' => 5]);
42
43
        // string $method, array $arguments, string $key, mixed? $data
44
        return [
45
            ['load', [12], 'ez-location-12', $object],
46
            ['loadSubtreeIds', ['standard'], 'ez-section-standard-by-identifier', $object],
47
        ];
48
    }
49
}
50

eZ/Publish/Core/Persistence/Cache/Tests/SectionHandlerTest.php 1 location

@@ 44-53 (lines=10) @@
41
        ];
42
    }
43
44
    public function providerForCachedLoadMethods() : array
45
    {
46
        $object = new SPISection(['id' => 5]);
47
48
        // string $method, array $arguments, string $key, mixed? $data
49
        return [
50
            ['load', [5], 'ez-section-5', $object],
51
            ['loadByIdentifier', ['standard'], 'ez-section-standard-by-identifier', $object],
52
        ];
53
    }
54
}
55