5
5
/*
6
6
* This file is part of the Liip/TestFixturesBundle
7
7
*
8
+ * (c) Lukas Kahwe Smith <[email protected] >
9
+ *
8
10
* This source file is subject to the MIT license that is bundled
9
11
* with this source code in the file LICENSE.
10
12
*/
11
13
12
-
13
14
use Doctrine \Bundle \MongoDBBundle \DoctrineMongoDBBundle ;
14
15
use Doctrine \Common \DataFixtures \ProxyReferenceRepository ;
15
16
use Doctrine \ODM \MongoDB \Repository \DocumentRepository ;
16
- use Liip \Acme \Tests \AppConfigMongodb \DataFixtures \MongoDB \LoadUserDataFixture ;
17
17
use Liip \Acme \Tests \AppConfigMongodb \AppConfigMongodbKernel ;
18
+ use Liip \Acme \Tests \AppConfigMongodb \DataFixtures \MongoDB \LoadUserDataFixture ;
18
19
use Liip \Acme \Tests \AppConfigMongodb \Document \User ;
19
20
use Liip \Acme \Tests \Traits \ContainerProvider ;
20
21
use Liip \TestFixturesBundle \Services \DatabaseToolCollection ;
@@ -41,15 +42,15 @@ class ConfigMongodbTest extends KernelTestCase
41
42
42
43
/** @var AbstractDatabaseTool */
43
44
protected $ databaseTool ;
44
-
45
+
45
46
private DocumentRepository $ userRepository ;
46
47
47
48
protected function setUp (): void
48
49
{
49
50
if (!class_exists (DoctrineMongoDBBundle::class)) {
50
51
$ this ->markTestSkipped ('Need doctrine/mongodb-odm-bundle package. ' );
51
52
}
52
- if (version_compare (PHP_VERSION , '8.1.0 ' ) < 0 ) {
53
+ if (version_compare (\ PHP_VERSION , '8.1.0 ' ) < 0 ) {
53
54
$ this ->markTestSkipped ('MongoDB Tests doesn \'t support Outdated PHP Version. <8.1.0 ' );
54
55
}
55
56
@@ -61,7 +62,7 @@ protected function setUp(): void
61
62
62
63
$ this ->userRepository = $ this ->getTestContainer ()->get ('doctrine_mongodb ' )
63
64
->getRepository (User::class);
64
-
65
+
65
66
$ this ->databaseTool = $ this ->getTestContainer ()->get (DatabaseToolCollection::class)->get ('default ' , 'doctrine_mongodb ' );
66
67
67
68
$ this ->assertInstanceOf (MongoDBDatabaseTool::class, $ this ->databaseTool );
0 commit comments