diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c73c3a3c5..214982ad9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -36,4 +36,4 @@ jobs: - name: Execute tests via PEST(PHPUnit) env: DB_PASSWORD: root - run: ./vendor/bin/pest + run: ./vendor/bin/pest --parallel diff --git a/tests/TestCase.php b/tests/TestCase.php index ec642a01f..b4317bc7e 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -38,15 +38,13 @@ class TestCase extends Orchestra protected function setUp(): void { - $this->afterApplicationCreated(function () { - $this->performApplication() - ->resolveFactories() - ->resolveSuperUser() - ->resolveMoonShineUserResource() - ->registerTestResource(); - }); - parent::setUp(); + + $this->performApplication() + ->resolveFactories() + ->resolveSuperUser() + ->resolveMoonShineUserResource() + ->registerTestResource(); } protected function defineEnvironment($app): void