File tree 1 file changed +20
-6
lines changed
Tests/Unit/Service/Configuration 1 file changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -267,22 +267,30 @@ public function testGetDeletedFieldReturnsConfiguredField()
267
267
}
268
268
269
269
/**
270
- * @covers ::getAllTableNamesWithPidField
270
+ * @covers ::getAllTableNamesWithPidAndUidField
271
271
*/
272
- public function testGetAllTableNamesWithPidFieldReturnsExpectedTables ()
272
+ public function testGetAllTableNamesWithPidAndUidFieldReturnsExpectedTables ()
273
273
{
274
274
/** @var \PHPUnit_Framework_MockObject_MockObject|TcaService $tcaService */
275
275
$ tcaService = $ this ->getMockBuilder (TcaService::class)->setMethods (['getDatabaseSchema ' ])->getMock ();
276
276
277
277
$ databaseSchema = [
278
278
'foo ' => [
279
279
'pid ' => [],
280
+ 'uid ' => []
280
281
],
281
282
'bar ' => [
282
283
'pid ' => [],
284
+ 'uid ' => []
283
285
],
284
286
'baz ' => [
285
- 'uid ' => [],
287
+ 'tstamp ' => []
288
+ ],
289
+ 'boo ' => [
290
+ 'pid ' => []
291
+ ],
292
+ 'far ' => [
293
+ 'uid ' => []
286
294
],
287
295
];
288
296
@@ -293,26 +301,32 @@ public function testGetAllTableNamesWithPidFieldReturnsExpectedTables()
293
301
}
294
302
295
303
/**
296
- * @covers ::getAllTableNamesWithPidField
297
- * @depends testGetAllTableNamesWithPidFieldReturnsExpectedTables
304
+ * @covers ::getAllTableNamesWithPidAndUidField
305
+ * @depends testGetAllTableNamesWithPidAndUidFieldReturnsExpectedTables
298
306
*/
299
- public function testGetAllTableNamesWithPidFieldReturnsExpectedTablesExceptExcludedTables ()
307
+ public function testGetAllTableNamesWithPidAndUidFieldReturnsExpectedTablesExceptExcludedTables ()
300
308
{
301
309
/** @var \PHPUnit_Framework_MockObject_MockObject|TcaService $tcaService */
302
310
$ tcaService = $ this ->getMockBuilder (TcaService::class)->setMethods (['getDatabaseSchema ' ])->getMock ();
303
311
304
312
$ databaseSchema = [
305
313
'foo ' => [
306
314
'pid ' => [],
315
+ 'uid ' => []
307
316
],
308
317
'bar ' => [
309
318
'pid ' => [],
319
+ 'uid ' => []
310
320
],
311
321
'baz ' => [
312
322
'uid ' => [],
313
323
],
324
+ 'faz ' => [
325
+ 'pid ' => [],
326
+ ],
314
327
'boo ' => [
315
328
'pid ' => [],
329
+ 'uid ' => []
316
330
],
317
331
];
318
332
You can’t perform that action at this time.
0 commit comments