1 | <?php |
||
16 | class LanguageLimitationIntegrationTest extends BaseLimitationIntegrationTest |
||
17 | { |
||
18 | private const LANG_ENG_GB = 'eng-GB'; |
||
19 | private const LANG_ENG_US = 'eng-US'; |
||
20 | private const LANG_GER_DE = 'ger-DE'; |
||
21 | |||
22 | /** |
||
23 | * Data provider for testCanUserCreateContent. |
||
24 | * |
||
25 | * @see testCanUserCreateContent |
||
26 | * |
||
27 | * @return array |
||
28 | */ |
||
29 | public function providerForCanUserCreateContent(): array |
||
48 | |||
49 | /** |
||
50 | * @dataProvider providerForCanUserCreateContent |
||
51 | * |
||
52 | * @param array $limitations |
||
53 | * @param bool $expectedResult |
||
54 | * |
||
55 | * @throws \eZ\Publish\API\Repository\Exceptions\ForbiddenException |
||
56 | * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException |
||
57 | * @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException |
||
58 | */ |
||
59 | public function testCanUserCreateContent(array $limitations, bool $expectedResult): void |
||
88 | |||
89 | /** |
||
90 | * Data provider for testCanUserEditContent and testCanUserPublishContent. |
||
91 | * |
||
92 | * @see testCanUserEditContent |
||
93 | * @see testCanUserPublishContent |
||
94 | */ |
||
95 | public function providerForCanUserEditOrPublishContent(): array |
||
113 | |||
114 | /** |
||
115 | * @dataProvider providerForCanUserEditOrPublishContent |
||
116 | * |
||
117 | * @param array $limitations |
||
118 | * @param bool $expectedResult |
||
119 | * |
||
120 | * @throws \eZ\Publish\API\Repository\Exceptions\ForbiddenException |
||
121 | * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException |
||
122 | * @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException |
||
123 | */ |
||
124 | public function testCanUserEditContent(array $limitations, bool $expectedResult): void |
||
144 | |||
145 | /** |
||
146 | * @dataProvider providerForCanUserEditOrPublishContent |
||
147 | * |
||
148 | * @param array $limitations |
||
149 | * @param bool $expectedResult |
||
150 | * |
||
151 | * @throws \eZ\Publish\API\Repository\Exceptions\ForbiddenException |
||
152 | * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException |
||
153 | * @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException |
||
154 | */ |
||
155 | public function testCanUserPublishContent(array $limitations, bool $expectedResult): void |
||
163 | } |
||
164 |