File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 3333 strategy :
3434 matrix :
3535 php : [7.4, 8.0, 8.1]
36- symfony : [4.4.*, 5.3.*, 5. 4.*]
36+ symfony : [4.4.*, 5.4.*]
3737 deps : [highest]
3838 include :
3939 - php : 7.2
Original file line number Diff line number Diff line change 55use DAMA \DoctrineTestBundle \Doctrine \DBAL \StaticDriver ;
66use Symfony \Bundle \FrameworkBundle \Console \Application ;
77use Symfony \Component \HttpKernel \KernelInterface ;
8- use Zenstruck \Foundry \Factory ;
98
109/**
1110 * @internal
@@ -42,7 +41,7 @@ public static function resetDatabase(KernelInterface $kernel): void
4241
4342 $ databaseResetter ->resetDatabase ();
4443
45- self ::bootFoundry ($ kernel );
44+ self ::flushGlobalState ($ kernel );
4645
4746 self ::$ hasBeenReset = true ;
4847 }
@@ -57,7 +56,7 @@ public static function resetSchema(KernelInterface $kernel): void
5756 return ;
5857 }
5958
60- self ::bootFoundry ($ kernel );
59+ self ::flushGlobalState ($ kernel );
6160 }
6261
6362 /** @retrun array<SchemaResetterInterface> */
@@ -77,11 +76,9 @@ private static function schemaResetters(KernelInterface $kernel): array
7776 return $ databaseResetters ;
7877 }
7978
80- private static function bootFoundry (KernelInterface $ kernel ): void
79+ private static function flushGlobalState (KernelInterface $ kernel ): void
8180 {
82- if (!Factory::isBooted ()) {
83- TestState::bootFromContainer ($ kernel ->getContainer ());
84- }
81+ TestState::bootFromContainer ($ kernel ->getContainer ());
8582
8683 TestState::flushGlobalState ();
8784 }
You can’t perform that action at this time.
0 commit comments