diff --git a/tests/Functional/Providers/ApiatoServiceProviderTest.php b/tests/Functional/Providers/ApiatoServiceProviderTest.php index 615484c73..2489e38e0 100644 --- a/tests/Functional/Providers/ApiatoServiceProviderTest.php +++ b/tests/Functional/Providers/ApiatoServiceProviderTest.php @@ -19,9 +19,9 @@ use Tests\Support\Doubles\Dummies\SingletonInterface; use Tests\Support\Doubles\Dummies\UselessClass; use Tests\Support\Doubles\Dummies\UselessInterface; -use Tests\Support\Doubles\Fakes\Laravel\app\Containers\MySection\Book\Middlewares\BeforeMiddleware; -use Tests\Support\Doubles\Fakes\Laravel\app\Containers\MySection\Author\Providers\DeferredServiceProvider; use Tests\Support\Doubles\Fakes\Laravel\app\Containers\Identity\User\Providers\FirstServiceProvider; +use Tests\Support\Doubles\Fakes\Laravel\app\Containers\MySection\Author\Providers\DeferredServiceProvider; +use Tests\Support\Doubles\Fakes\Laravel\app\Containers\MySection\Book\Middlewares\BeforeMiddleware; use Tests\Support\Doubles\Fakes\Laravel\app\Ship\Providers\SecondServiceProvider; describe(class_basename(ApiatoServiceProvider::class), function (): void { diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Providers/AggregateServiceProvider.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Providers/AggregateServiceProvider.php index 481d87822..56323bd37 100644 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Providers/AggregateServiceProvider.php +++ b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Providers/AggregateServiceProvider.php @@ -8,8 +8,8 @@ use Tests\Support\Doubles\Dummies\SingletonInterface; use Tests\Support\Doubles\Dummies\UselessClass; use Tests\Support\Doubles\Dummies\UselessInterface; -use Tests\Support\Doubles\Fakes\Laravel\app\Containers\MySection\Author\Providers\DeferredServiceProvider; use Tests\Support\Doubles\Fakes\Laravel\app\Containers\Identity\User\Providers\FirstServiceProvider; +use Tests\Support\Doubles\Fakes\Laravel\app\Containers\MySection\Author\Providers\DeferredServiceProvider; class AggregateServiceProvider extends CoreAggregateServiceProvider implements DeferrableProvider { diff --git a/tests/TestCase.php b/tests/TestCase.php index 350a152e3..f304d1477 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -2,7 +2,6 @@ namespace Tests; -use Illuminate\Config\Repository; use Illuminate\Foundation\Testing\RefreshDatabase; use Orchestra\Testbench\Concerns\WithWorkbench; use Vinkla\Hashids\Facades\Hashids; diff --git a/tests/Unit/Foundation/Providers/ApiatoServiceProviderTest.php b/tests/Unit/Foundation/Providers/ApiatoServiceProviderTest.php index 351ec06e4..638233d0d 100644 --- a/tests/Unit/Foundation/Providers/ApiatoServiceProviderTest.php +++ b/tests/Unit/Foundation/Providers/ApiatoServiceProviderTest.php @@ -11,13 +11,13 @@ use Apiato\Foundation\Support\Providers\RateLimitingServiceProvider; use Apiato\Foundation\Support\Providers\ViewServiceProvider; use Apiato\Generator\GeneratorsServiceProvider; -use Tests\Support\Doubles\Fakes\Laravel\app\Containers\MySection\Book\Providers\EventServiceProvider; -use Tests\Support\Doubles\Fakes\Laravel\app\Containers\MySection\Book\Providers\BookServiceProvider; -use Tests\Support\Doubles\Fakes\Laravel\app\Ship\Providers\ShipServiceProvider; use Tests\Support\Doubles\Fakes\Laravel\app\Containers\Identity\User\Providers\FirstServiceProvider; use Tests\Support\Doubles\Fakes\Laravel\app\Containers\MySection\Author\Providers\DeferredServiceProvider; use Tests\Support\Doubles\Fakes\Laravel\app\Containers\MySection\Book\Providers\AggregateServiceProvider; +use Tests\Support\Doubles\Fakes\Laravel\app\Containers\MySection\Book\Providers\BookServiceProvider; +use Tests\Support\Doubles\Fakes\Laravel\app\Containers\MySection\Book\Providers\EventServiceProvider; use Tests\Support\Doubles\Fakes\Laravel\app\Ship\Providers\SecondServiceProvider; +use Tests\Support\Doubles\Fakes\Laravel\app\Ship\Providers\ShipServiceProvider; describe(class_basename(ApiatoServiceProvider::class), function (): void { it('registers expected providers', function (): void { @@ -40,7 +40,6 @@ FirstServiceProvider::class, ]; - $registeredProviders = $provider->providers(); expect($registeredProviders)->toBe($expected);