Code Duplication    Length = 25-25 lines in 2 locations

src/Graviton/CoreBundle/Tests/Controller/ModuleControllerTest.php 1 location

@@ 292-316 (lines=25) @@
289
    /**
290
     * @return array
291
     */
292
    public function findByAppRefProvider()
293
    {
294
        return [
295
            'find all tablet records' => [
296
                'app.$ref',
297
                'http://localhost/core/app/tablet',
298
                5
299
            ],
300
            'find a linked record when searching for ref' => [
301
                'app.$ref',
302
                'http://localhost/core/app/admin',
303
                1
304
            ],
305
            'find nothing when searching for inextistant (and unlinked) ref' => [
306
                'app.$ref',
307
                'http://localhost/core/app/inexistant',
308
                0
309
            ],
310
            'return nothing when searching with incomplete ref' => [
311
                'app.$ref',
312
                'http://localhost/core/app',
313
                0
314
            ],
315
        ];
316
    }
317
318
    /**
319
     * Apply RQL operators to extref fields

src/Graviton/CoreBundle/Tests/Controller/ShowcaseControllerTest.php 1 location

@@ 1056-1080 (lines=25) @@
1053
    /**
1054
     * @return array
1055
     */
1056
    public function findByExtrefProvider()
1057
    {
1058
        return [
1059
            'find a linked record when searching for "tablet" ref by array field' => [
1060
                'nestedApps.0.$ref',
1061
                'http://localhost/core/app/tablet',
1062
                1
1063
            ],
1064
            'find a linked record when searching for "admin" ref by array field' => [
1065
                'nestedApps.0.$ref',
1066
                'http://localhost/core/app/admin',
1067
                1
1068
            ],
1069
            'find nothing when searching for inextistant (and unlinked) ref by array field' => [
1070
                'nestedApps.0.$ref',
1071
                'http://localhost/core/app/inexistant',
1072
                0
1073
            ],
1074
            'return nothing when searching with incomplete ref by array field' => [
1075
                'nestedApps.0.$ref',
1076
                'http://localhost/core/app',
1077
                0
1078
            ],
1079
        ];
1080
    }
1081
}
1082