Code Duplication    Length = 18-18 lines in 3 locations

eZ/Publish/API/Repository/Tests/URLAliasServiceTest.php 3 locations

@@ 295-312 (lines=18) @@
292
     *
293
     * @depends testCreateGlobalUrlAlias
294
     */
295
    public function testCreateGlobalUrlAliasPropertyValues(URLAlias $createdUrlAlias)
296
    {
297
        $this->assertNotNull($createdUrlAlias->id);
298
299
        $this->assertPropertiesCorrect(
300
            [
301
                'type' => URLAlias::RESOURCE,
302
                'destination' => 'content/search?SearchText=eZ',
303
                'path' => '/Home/My-New-Site',
304
                'languageCodes' => ['eng-US'],
305
                'alwaysAvailable' => false,
306
                'isHistory' => false,
307
                'isCustom' => true,
308
                'forward' => false,
309
            ],
310
            $createdUrlAlias
311
        );
312
    }
313
314
    /**
315
     * Test for the createGlobalUrlAlias() method.
@@ 347-364 (lines=18) @@
344
     *
345
     * @depends testCreateGlobalUrlAliasWithForward
346
     */
347
    public function testCreateGlobalUrlAliasWithForwardPropertyValues(URLAlias $createdUrlAlias)
348
    {
349
        $this->assertNotNull($createdUrlAlias->id);
350
351
        $this->assertPropertiesCorrect(
352
            [
353
                'type' => URLAlias::RESOURCE,
354
                'destination' => 'content/search?SearchText=eZ',
355
                'path' => '/Home/My-New-Site',
356
                'languageCodes' => ['eng-US'],
357
                'alwaysAvailable' => false,
358
                'isHistory' => false,
359
                'isCustom' => true,
360
                'forward' => true,
361
            ],
362
            $createdUrlAlias
363
        );
364
    }
365
366
    /**
367
     * Test for the createGlobalUrlAlias() method.
@@ 400-417 (lines=18) @@
397
     *
398
     * @depends testCreateGlobalUrlAliasWithAlwaysAvailable
399
     */
400
    public function testCreateGlobalUrlAliasWithAlwaysAvailablePropertyValues(URLAlias $createdUrlAlias)
401
    {
402
        $this->assertNotNull($createdUrlAlias->id);
403
404
        $this->assertPropertiesCorrect(
405
            [
406
                'type' => URLAlias::RESOURCE,
407
                'destination' => 'content/search?SearchText=eZ',
408
                'path' => '/Home/My-New-Site',
409
                'languageCodes' => ['eng-US'],
410
                'alwaysAvailable' => true,
411
                'isHistory' => false,
412
                'isCustom' => true,
413
                'forward' => false,
414
            ],
415
            $createdUrlAlias
416
        );
417
    }
418
419
    /**
420
     * Test for the createUrlAlias() method.