Skip to content

Commit

Permalink
Enable TestBench auto discovery globally
Browse files Browse the repository at this point in the history
  • Loading branch information
ngmy committed Jun 29, 2023
1 parent 030d897 commit 31dfa02
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use Illuminate\Foundation\Testing\DatabaseTransactions;
use Orchestra\Testbench\TestCase as OrchestraTestCase;
use Williamjulianvicary\LaravelJobResponse\LaravelJobResponseServiceProvider;

/**
* @internal
Expand All @@ -17,22 +16,12 @@ abstract class TestCase extends OrchestraTestCase
{
use DatabaseTransactions;

protected $enablesPackageDiscoveries = true;

protected function setUp(): void
{
parent::setUp();
\assert(false !== realpath(__DIR__.'/database/migrations'));
$this->loadMigrationsFrom(realpath(__DIR__.'/database/migrations'));
}

/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*
* @param mixed $app
*/
protected function getPackageProviders($app): array
{
return [
LaravelJobResponseServiceProvider::class,
];
}
}

0 comments on commit 31dfa02

Please sign in to comment.