Code Duplication    Length = 18-18 lines in 3 locations

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

@@ 286-303 (lines=18) @@
283
     *
284
     * @depends testCreateGlobalUrlAlias
285
     */
286
    public function testCreateGlobalUrlAliasPropertyValues(URLAlias $createdUrlAlias)
287
    {
288
        $this->assertNotNull($createdUrlAlias->id);
289
290
        $this->assertPropertiesCorrect(
291
            array(
292
                'type' => URLAlias::RESOURCE,
293
                'destination' => 'content/search?SearchText=eZ',
294
                'path' => '/Home/My-New-Site',
295
                'languageCodes' => array('eng-US'),
296
                'alwaysAvailable' => false,
297
                'isHistory' => false,
298
                'isCustom' => true,
299
                'forward' => false,
300
            ),
301
            $createdUrlAlias
302
        );
303
    }
304
305
    /**
306
     * Test for the createGlobalUrlAlias() method.
@@ 338-355 (lines=18) @@
335
     *
336
     * @depends testCreateGlobalUrlAliasWithForward
337
     */
338
    public function testCreateGlobalUrlAliasWithForwardPropertyValues(URLAlias $createdUrlAlias)
339
    {
340
        $this->assertNotNull($createdUrlAlias->id);
341
342
        $this->assertPropertiesCorrect(
343
            array(
344
                'type' => URLAlias::RESOURCE,
345
                'destination' => 'content/search?SearchText=eZ',
346
                'path' => '/Home/My-New-Site',
347
                'languageCodes' => array('eng-US'),
348
                'alwaysAvailable' => false,
349
                'isHistory' => false,
350
                'isCustom' => true,
351
                'forward' => true,
352
            ),
353
            $createdUrlAlias
354
        );
355
    }
356
357
    /**
358
     * Test for the createGlobalUrlAlias() method.
@@ 391-408 (lines=18) @@
388
     *
389
     * @depends testCreateGlobalUrlAliasWithAlwaysAvailable
390
     */
391
    public function testCreateGlobalUrlAliasWithAlwaysAvailablePropertyValues(URLAlias $createdUrlAlias)
392
    {
393
        $this->assertNotNull($createdUrlAlias->id);
394
395
        $this->assertPropertiesCorrect(
396
            array(
397
                'type' => URLAlias::RESOURCE,
398
                'destination' => 'content/search?SearchText=eZ',
399
                'path' => '/Home/My-New-Site',
400
                'languageCodes' => array('eng-US'),
401
                'alwaysAvailable' => true,
402
                'isHistory' => false,
403
                'isCustom' => true,
404
                'forward' => false,
405
            ),
406
            $createdUrlAlias
407
        );
408
    }
409
410
    /**
411
     * Test for the createUrlAlias() method.