From 3eacdd490e81e5924c3b8972b56d03009fc87cad Mon Sep 17 00:00:00 2001 From: Eder Soares Date: Tue, 28 Mar 2023 17:11:30 -0300 Subject: [PATCH] Return again `Factory::restart()` --- tests/FactoryTestCase.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/FactoryTestCase.php b/tests/FactoryTestCase.php index 54f19b1..8e194ca 100644 --- a/tests/FactoryTestCase.php +++ b/tests/FactoryTestCase.php @@ -9,15 +9,15 @@ abstract class FactoryTestCase extends TestCase { use TestConcerns; - protected function factory(): Factory + protected function factory(): void { + Factory::restart(); + $factory = new Factory(); $io = new BufferIO(); $factory->createComposer(io: $io, cwd: $this->path() . $this->fixture()); $this->output = $io->getOutput(); - - return $factory; } }