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

LocationTest::getRepository()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 5
nc 2
nop 0
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
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