Code Duplication    Length = 18-18 lines in 3 locations

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

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