Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to committed Sep 20, 2023
1 parent 4bcbafd commit 86c6696
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
- name: Execute tests via PEST(PHPUnit)
env:
DB_PASSWORD: root
run: ./vendor/bin/pest
run: ./vendor/bin/pest --parallel
14 changes: 6 additions & 8 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 86c6696

Please sign in to comment.