Code Duplication    Length = 18-18 lines in 3 locations

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

@@ 323-340 (lines=18) @@
320
     *
321
     * @depends testCreateGlobalUrlAlias
322
     */
323
    public function testCreateGlobalUrlAliasPropertyValues(URLAlias $createdUrlAlias)
324
    {
325
        $this->assertNotNull($createdUrlAlias->id);
326
327
        $this->assertPropertiesCorrect(
328
            [
329
                'type' => URLAlias::RESOURCE,
330
                'destination' => 'content/search?SearchText=eZ',
331
                'path' => '/Home/My-New-Site',
332
                'languageCodes' => ['eng-US'],
333
                'alwaysAvailable' => false,
334
                'isHistory' => false,
335
                'isCustom' => true,
336
                'forward' => false,
337
            ],
338
            $createdUrlAlias
339
        );
340
    }
341
342
    /**
343
     * Test for the createGlobalUrlAlias() method.
@@ 375-392 (lines=18) @@
372
     *
373
     * @depends testCreateGlobalUrlAliasWithForward
374
     */
375
    public function testCreateGlobalUrlAliasWithForwardPropertyValues(URLAlias $createdUrlAlias)
376
    {
377
        $this->assertNotNull($createdUrlAlias->id);
378
379
        $this->assertPropertiesCorrect(
380
            [
381
                'type' => URLAlias::RESOURCE,
382
                'destination' => 'content/search?SearchText=eZ',
383
                'path' => '/Home/My-New-Site',
384
                'languageCodes' => ['eng-US'],
385
                'alwaysAvailable' => false,
386
                'isHistory' => false,
387
                'isCustom' => true,
388
                'forward' => true,
389
            ],
390
            $createdUrlAlias
391
        );
392
    }
393
394
    /**
395
     * Test for the createGlobalUrlAlias() method.
@@ 428-445 (lines=18) @@
425
     *
426
     * @depends testCreateGlobalUrlAliasWithAlwaysAvailable
427
     */
428
    public function testCreateGlobalUrlAliasWithAlwaysAvailablePropertyValues(URLAlias $createdUrlAlias)
429
    {
430
        $this->assertNotNull($createdUrlAlias->id);
431
432
        $this->assertPropertiesCorrect(
433
            [
434
                'type' => URLAlias::RESOURCE,
435
                'destination' => 'content/search?SearchText=eZ',
436
                'path' => '/Home/My-New-Site',
437
                'languageCodes' => ['eng-US'],
438
                'alwaysAvailable' => true,
439
                'isHistory' => false,
440
                'isCustom' => true,
441
                'forward' => false,
442
            ],
443
            $createdUrlAlias
444
        );
445
    }
446
447
    /**
448
     * Test for the createUrlAlias() method.