2222use Contao \ManagerPlugin \PluginLoader ;
2323use Contao \TestCase \ContaoTestCase ;
2424use Doctrine \Bundle \DoctrineBundle \DoctrineBundle ;
25- use Doctrine \Bundle \DoctrineCacheBundle \DoctrineCacheBundle ;
2625use Doctrine \DBAL \Connection ;
2726use FOS \HttpCacheBundle \FOSHttpCacheBundle ;
2827use Lexik \Bundle \MaintenanceBundle \LexikMaintenanceBundle ;
@@ -84,7 +83,7 @@ public function testReturnsTheBundles(): void
8483 /** @var array<BundleConfig> $bundles */
8584 $ bundles = $ plugin ->getBundles (new DelegatingParser ());
8685
87- $ this ->assertCount (14 , $ bundles );
86+ $ this ->assertCount (13 , $ bundles );
8887
8988 $ this ->assertSame (FrameworkBundle::class, $ bundles [0 ]->getName ());
9089 $ this ->assertSame ([], $ bundles [0 ]->getReplace ());
@@ -110,39 +109,35 @@ public function testReturnsTheBundles(): void
110109 $ this ->assertSame ([], $ bundles [5 ]->getReplace ());
111110 $ this ->assertSame ([], $ bundles [5 ]->getLoadAfter ());
112111
113- $ this ->assertSame (DoctrineCacheBundle ::class, $ bundles [6 ]->getName ());
112+ $ this ->assertSame (LexikMaintenanceBundle ::class, $ bundles [6 ]->getName ());
114113 $ this ->assertSame ([], $ bundles [6 ]->getReplace ());
115114 $ this ->assertSame ([], $ bundles [6 ]->getLoadAfter ());
116115
117- $ this ->assertSame (LexikMaintenanceBundle ::class, $ bundles [7 ]->getName ());
116+ $ this ->assertSame (NelmioCorsBundle ::class, $ bundles [7 ]->getName ());
118117 $ this ->assertSame ([], $ bundles [7 ]->getReplace ());
119118 $ this ->assertSame ([], $ bundles [7 ]->getLoadAfter ());
120119
121- $ this ->assertSame (NelmioCorsBundle ::class, $ bundles [8 ]->getName ());
120+ $ this ->assertSame (NelmioSecurityBundle ::class, $ bundles [8 ]->getName ());
122121 $ this ->assertSame ([], $ bundles [8 ]->getReplace ());
123122 $ this ->assertSame ([], $ bundles [8 ]->getLoadAfter ());
124123
125- $ this ->assertSame (NelmioSecurityBundle ::class, $ bundles [9 ]->getName ());
124+ $ this ->assertSame (FOSHttpCacheBundle ::class, $ bundles [9 ]->getName ());
126125 $ this ->assertSame ([], $ bundles [9 ]->getReplace ());
127126 $ this ->assertSame ([], $ bundles [9 ]->getLoadAfter ());
128127
129- $ this ->assertSame (FOSHttpCacheBundle ::class, $ bundles [10 ]->getName ());
128+ $ this ->assertSame (ContaoManagerBundle ::class, $ bundles [10 ]->getName ());
130129 $ this ->assertSame ([], $ bundles [10 ]->getReplace ());
131- $ this ->assertSame ([], $ bundles [10 ]->getLoadAfter ());
130+ $ this ->assertSame ([ContaoCoreBundle::class ], $ bundles [10 ]->getLoadAfter ());
132131
133- $ this ->assertSame (ContaoManagerBundle ::class, $ bundles [11 ]->getName ());
132+ $ this ->assertSame (DebugBundle ::class, $ bundles [11 ]->getName ());
134133 $ this ->assertSame ([], $ bundles [11 ]->getReplace ());
135- $ this ->assertSame ([ContaoCoreBundle::class], $ bundles [11 ]->getLoadAfter ());
134+ $ this ->assertSame ([], $ bundles [11 ]->getLoadAfter ());
135+ $ this ->assertFalse ($ bundles [11 ]->loadInProduction ());
136136
137- $ this ->assertSame (DebugBundle ::class, $ bundles [12 ]->getName ());
137+ $ this ->assertSame (WebProfilerBundle ::class, $ bundles [12 ]->getName ());
138138 $ this ->assertSame ([], $ bundles [12 ]->getReplace ());
139139 $ this ->assertSame ([], $ bundles [12 ]->getLoadAfter ());
140140 $ this ->assertFalse ($ bundles [12 ]->loadInProduction ());
141-
142- $ this ->assertSame (WebProfilerBundle::class, $ bundles [13 ]->getName ());
143- $ this ->assertSame ([], $ bundles [13 ]->getReplace ());
144- $ this ->assertSame ([], $ bundles [13 ]->getLoadAfter ());
145- $ this ->assertFalse ($ bundles [13 ]->loadInProduction ());
146141 }
147142
148143 public function testRegistersModuleBundles (): void
@@ -167,7 +162,7 @@ static function ($resource): array {
167162 $ plugin = new Plugin ();
168163 $ configs = $ plugin ->getBundles ($ parser );
169164
170- $ this ->assertCount (16 , $ configs );
165+ $ this ->assertCount (15 , $ configs );
171166 $ this ->assertContains ('foo1 ' , $ configs );
172167 $ this ->assertContains ('foo2 ' , $ configs );
173168 $ this ->assertNotContains ('foo3 ' , $ configs );
0 commit comments