Code Duplication    Length = 18-18 lines in 3 locations

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

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