From 86c669611d79fda43620fd2cb79989e2acef2571 Mon Sep 17 00:00:00 2001 From: LT Date: Wed, 20 Sep 2023 17:54:21 +0300 Subject: [PATCH] fix: tests --- .github/workflows/tests.yml | 2 +- tests/TestCase.php | 14 ++++++-------- 2 files changed, 7 insertions(+), 9 deletions(-) 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