1 | <?php |
||
22 | class RepositoryTest extends BaseTest |
||
23 | { |
||
24 | /** |
||
25 | * Test for the getRepository() method. |
||
26 | */ |
||
27 | public function testGetRepository() |
||
31 | |||
32 | /** |
||
33 | * Test for the getContentService() method. |
||
34 | * |
||
35 | * @group content |
||
36 | * @group user |
||
37 | * |
||
38 | * @see \eZ\Publish\API\Repository\Repository::getContentService() |
||
39 | */ |
||
40 | public function testGetContentService() |
||
48 | |||
49 | /** |
||
50 | * Test for the getContentLanguageService() method. |
||
51 | * |
||
52 | * @group language |
||
53 | * |
||
54 | * @see \eZ\Publish\API\Repository\Repository::getContentLanguageService() |
||
55 | */ |
||
56 | public function testGetContentLanguageService() |
||
64 | |||
65 | /** |
||
66 | * Test for the getContentTypeService() method. |
||
67 | * |
||
68 | * @group content-type |
||
69 | * @group field-type |
||
70 | * @group user |
||
71 | * |
||
72 | * @see \eZ\Publish\API\Repository\Repository::getContentTypeService() |
||
73 | */ |
||
74 | public function testGetContentTypeService() |
||
82 | |||
83 | /** |
||
84 | * Test for the getLocationService() method. |
||
85 | * |
||
86 | * @group location |
||
87 | * |
||
88 | * @see \eZ\Publish\API\Repository\Repository::getLocationService() |
||
89 | */ |
||
90 | public function testGetLocationService() |
||
98 | |||
99 | /** |
||
100 | * Test for the getSectionService() method. |
||
101 | * |
||
102 | * @group section |
||
103 | * |
||
104 | * @see \eZ\Publish\API\Repository\Repository::getSectionService() |
||
105 | */ |
||
106 | public function testGetSectionService() |
||
114 | |||
115 | /** |
||
116 | * Test for the getUserService() method. |
||
117 | * |
||
118 | * @group user |
||
119 | * |
||
120 | * @see \eZ\Publish\API\Repository\Repository::getUserService() |
||
121 | */ |
||
122 | public function testGetUserService() |
||
130 | |||
131 | /** |
||
132 | * Test for the getNotificationService() method. |
||
133 | * |
||
134 | * @group user |
||
135 | * |
||
136 | * @see \eZ\Publish\API\Repository\Repository::getNotificationService() |
||
137 | */ |
||
138 | public function testGetNotificationService() |
||
146 | |||
147 | /** |
||
148 | * Test for the getTrashService() method. |
||
149 | * |
||
150 | * @group trash |
||
151 | * |
||
152 | * @see \eZ\Publish\API\Repository\Repository::getTrashService() |
||
153 | */ |
||
154 | public function testGetTrashService() |
||
162 | |||
163 | /** |
||
164 | * Test for the getRoleService() method. |
||
165 | * |
||
166 | * @group role |
||
167 | * |
||
168 | * @see \eZ\Publish\API\Repository\Repository::getRoleService() |
||
169 | */ |
||
170 | public function testGetRoleService() |
||
178 | |||
179 | /** |
||
180 | * Test for the getURLAliasService() method. |
||
181 | * |
||
182 | * @group url-alias |
||
183 | * |
||
184 | * @see \eZ\Publish\API\Repository\Repository::getURLAliasService() |
||
185 | */ |
||
186 | public function testGetURLAliasService() |
||
194 | |||
195 | /** |
||
196 | * Test for the getUrlWildcardService() method. |
||
197 | * |
||
198 | * @group url-wildcard |
||
199 | * |
||
200 | * @see \eZ\Publish\API\Repository\Repository::getUrlWildcardService() |
||
201 | */ |
||
202 | public function testGetURLWildcardService() |
||
210 | |||
211 | /** |
||
212 | * Test for the getObjectStateService(). |
||
213 | * |
||
214 | * @group object-state |
||
215 | * |
||
216 | * @see \eZ\Publish\API\Repository\Repository::getObjectStateService() |
||
217 | */ |
||
218 | public function testGetObjectStateService() |
||
226 | |||
227 | /** |
||
228 | * Test for the getFieldTypeService(). |
||
229 | * |
||
230 | * @group object-state |
||
231 | * |
||
232 | * @see \eZ\Publish\API\Repository\Repository::getFieldTypeService() |
||
233 | */ |
||
234 | public function testGetFieldTypeService() |
||
242 | |||
243 | /** |
||
244 | * Test for the getSearchService() method. |
||
245 | * |
||
246 | * @group search |
||
247 | * |
||
248 | * @see \eZ\Publish\API\Repository\Repository::getSearchService() |
||
249 | */ |
||
250 | public function testGetSearchService() |
||
259 | |||
260 | /** |
||
261 | * Test for the getSearchService() method. |
||
262 | * |
||
263 | * @group permission |
||
264 | * |
||
265 | * @see \eZ\Publish\API\Repository\Repository::getPermissionResolver() |
||
266 | */ |
||
267 | public function testGetPermissionResolver() |
||
276 | |||
277 | /** |
||
278 | * Test for the commit() method. |
||
279 | * |
||
280 | * @see \eZ\Publish\API\Repository\Repository::commit() |
||
281 | */ |
||
282 | public function testCommit() |
||
295 | |||
296 | /** |
||
297 | * Test for the commit() method. |
||
298 | * |
||
299 | * @see \eZ\Publish\API\Repository\Repository::commit() |
||
300 | */ |
||
301 | public function testCommitThrowsRuntimeException() |
||
308 | |||
309 | /** |
||
310 | * Test for the rollback() method. |
||
311 | * |
||
312 | * @see \eZ\Publish\API\Repository\Repository::rollback() |
||
313 | */ |
||
314 | public function testRollback() |
||
320 | |||
321 | /** |
||
322 | * Test for the rollback() method. |
||
323 | * |
||
324 | * @see \eZ\Publish\API\Repository\Repository::rollback() |
||
325 | */ |
||
326 | public function testRollbackThrowsRuntimeException() |
||
333 | } |
||
334 |