Completed
Push — ezp26914-imagine_resolve_excep... ( c5a137...48c7cc )
by
unknown
42:21 queued 27:20
created

LocationTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRepository() 0 8 2
1
<?php
2
3
/**
4
 * File contains: eZ\Publish\Core\Repository\Tests\Service\Integration\Legacy\LocationTest class.
5
 *
6
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
7
 * @license For full copyright and license information view LICENSE file distributed with this source code.
8
 */
9
namespace eZ\Publish\Core\Repository\Tests\Service\Integration\Legacy;
10
11
use eZ\Publish\Core\Repository\Tests\Service\Integration\LocationBase as BaseLocationServiceTest;
12
use Exception;
13
14
/**
15
 * Test case for Location Service using Legacy storage class.
16
 */
17
class LocationTest extends BaseLocationServiceTest
18
{
19
    protected function getRepository()
20
    {
21
        try {
22
            return Utils::getRepository();
23
        } catch (Exception $e) {
24
            $this->markTestIncomplete($e->getMessage());
25
        }
26
    }
27
}
28