@@ -850,6 +850,10 @@ public function testAnnotationsBundleMappingDetection(): void
850
850
/** @requires PHP 8 */
851
851
public function testAttributesBundleMappingDetection (): void
852
852
{
853
+ if (! interface_exists (EntityManagerInterface::class)) {
854
+ self ::markTestSkipped ('This test requires ORM ' );
855
+ }
856
+
853
857
$ container = $ this ->getContainer (['AttributesBundle ' ]);
854
858
$ extension = new DoctrineExtension ();
855
859
@@ -1204,6 +1208,10 @@ public static function cacheConfigurationProvider(): array
1204
1208
/** @requires PHP 8 */
1205
1209
public function testAsEntityListenerAttribute ()
1206
1210
{
1211
+ if (! interface_exists (EntityManagerInterface::class)) {
1212
+ self ::markTestSkipped ('This test requires ORM ' );
1213
+ }
1214
+
1207
1215
$ container = $ this ->getContainer ();
1208
1216
$ extension = new DoctrineExtension ();
1209
1217
@@ -1238,6 +1246,10 @@ public function testAsEntityListenerAttribute()
1238
1246
/** @requires PHP 8 */
1239
1247
public function testAsDoctrineListenerAttribute ()
1240
1248
{
1249
+ if (! interface_exists (EntityManagerInterface::class)) {
1250
+ self ::markTestSkipped ('This test requires ORM ' );
1251
+ }
1252
+
1241
1253
$ container = $ this ->getContainer ();
1242
1254
$ extension = new DoctrineExtension ();
1243
1255
@@ -1271,7 +1283,7 @@ public function testRegistrationsWithMiddlewaresAndSfDebugMiddleware(): void
1271
1283
$ container = $ this ->getContainer ();
1272
1284
$ extension = new DoctrineExtension ();
1273
1285
1274
- $ config = BundleConfigurationBuilder::createBuilderWithBaseValues ()
1286
+ $ config = BundleConfigurationBuilder::createBuilder ()
1275
1287
->addConnection ([
1276
1288
'connections ' => [
1277
1289
'conn1 ' => [
@@ -1293,7 +1305,6 @@ public function testRegistrationsWithMiddlewaresAndSfDebugMiddleware(): void
1293
1305
],
1294
1306
],
1295
1307
])
1296
- ->addBaseEntityManager ()
1297
1308
->build ();
1298
1309
1299
1310
$ extension ->load ([$ config ], $ container );
@@ -1341,7 +1352,7 @@ public function testDefinitionsToLogAndProfile(): void
1341
1352
$ container = $ this ->getContainer ();
1342
1353
$ extension = new DoctrineExtension ();
1343
1354
1344
- $ config = BundleConfigurationBuilder::createBuilderWithBaseValues ()
1355
+ $ config = BundleConfigurationBuilder::createBuilder ()
1345
1356
->addConnection ([
1346
1357
'connections ' => [
1347
1358
'conn1 ' => [
@@ -1356,7 +1367,6 @@ public function testDefinitionsToLogAndProfile(): void
1356
1367
],
1357
1368
],
1358
1369
])
1359
- ->addBaseEntityManager ()
1360
1370
->build ();
1361
1371
1362
1372
$ extension ->load ([$ config ], $ container );
@@ -1395,7 +1405,7 @@ public function testDefinitionsToLogQueriesLoggingFalse(): void
1395
1405
$ container = $ this ->getContainer ();
1396
1406
$ extension = new DoctrineExtension ();
1397
1407
1398
- $ config = BundleConfigurationBuilder::createBuilderWithBaseValues ()
1408
+ $ config = BundleConfigurationBuilder::createBuilder ()
1399
1409
->addConnection ([
1400
1410
'connections ' => [
1401
1411
'conn ' => [
@@ -1404,7 +1414,6 @@ public function testDefinitionsToLogQueriesLoggingFalse(): void
1404
1414
],
1405
1415
],
1406
1416
])
1407
- ->addBaseEntityManager ()
1408
1417
->build ();
1409
1418
1410
1419
$ extension ->load ([$ config ], $ container );
@@ -1421,6 +1430,10 @@ public function testDefinitionsToLogQueriesLoggingFalse(): void
1421
1430
*/
1422
1431
public function testControllerResolver (bool $ simpleEntityManagerConfig ): void
1423
1432
{
1433
+ if (! interface_exists (EntityManagerInterface::class)) {
1434
+ self ::markTestSkipped ('This test requires ORM ' );
1435
+ }
1436
+
1424
1437
$ container = $ this ->getContainer ();
1425
1438
$ extension = new DoctrineExtension ();
1426
1439
$ config = BundleConfigurationBuilder::createBuilderWithBaseValues ()->build ();
0 commit comments