Completed
Push — ezp26970-login_no_siteaccess_l... ( 42bede...99b8e7 )
by
unknown
22:52 queued 11:39
created

UserTest::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\UserTest 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\UserBase as BaseUserServiceTest;
12
use Exception;
13
14
/**
15
 * Test case for User Service using Legacy storage class.
16
 */
17
class UserTest extends BaseUserServiceTest
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