-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIbexaTestCoreInterface.php
82 lines (59 loc) · 2.36 KB
/
IbexaTestCoreInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
/**
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
declare(strict_types=1);
namespace Ibexa\Contracts\Test\Core;
use Doctrine\DBAL\Connection;
use Ibexa\Contracts\Core\Persistence\TransactionHandler;
use Ibexa\Contracts\Core\Repository\ContentService;
use Ibexa\Contracts\Core\Repository\ContentTypeService;
use Ibexa\Contracts\Core\Repository\LanguageService;
use Ibexa\Contracts\Core\Repository\LocationService;
use Ibexa\Contracts\Core\Repository\ObjectStateService;
use Ibexa\Contracts\Core\Repository\PermissionResolver;
use Ibexa\Contracts\Core\Repository\RoleService;
use Ibexa\Contracts\Core\Repository\SearchService;
use Ibexa\Contracts\Core\Repository\SectionService;
use Ibexa\Contracts\Core\Repository\UserPreferenceService;
use Ibexa\Contracts\Core\Repository\UserService;
/**
* @experimental
*/
interface IbexaTestCoreInterface
{
public function loadSchema(): void;
/**
* @return iterable<string>
*/
public function getSchemaFiles(): iterable;
public function loadFixtures(): void;
/**
* @return iterable<\Ibexa\Contracts\Core\Test\Persistence\Fixture>
*/
public function getFixtures(): iterable;
/**
* @template T of object
*
* @phpstan-param class-string<T> $className
*
* @return T
*/
public function getServiceByClassName(string $className, ?string $id = null, bool $prefix = true): object;
public function getDoctrineConnection(): Connection;
public function getContentTypeService(): ContentTypeService;
public function getContentService(): ContentService;
public function getLocationService(): LocationService;
public function getPermissionResolver(): PermissionResolver;
public function getRoleService(): RoleService;
public function getSearchService(): SearchService;
public function getTransactionHandler(): TransactionHandler;
public function getUserService(): UserService;
public function getObjectStateService(): ObjectStateService;
public function getLanguageService(): LanguageService;
public function getSectionService(): SectionService;
public function getUserPreferenceService(): UserPreferenceService;
public function setAnonymousUser(): void;
public function setAdministratorUser(): void;
}