Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

Commit 7ab3c92

Browse files
committed
Added Service Provider Test
1 parent 0a3fba4 commit 7ab3c92

File tree

4 files changed

+52
-19
lines changed

4 files changed

+52
-19
lines changed

tests/Feature/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!.gitignore
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?php
2+
3+
namespace Tests\Feature;
4+
5+
use Tests\TestCase;
6+
7+
class ServiceProviderTest extends TestCase
8+
{
9+
/** @test */
10+
public function it_has_cleanique_coders_packages()
11+
{
12+
$config = config('app.providers');
13+
$providers = [
14+
\CleaniqueCoders\Blueprint\Macro\BlueprintMacroServiceProvider::class,
15+
\CleaniqueCoders\Profile\ProfileServiceProvider::class,
16+
\CleaniqueCoders\ArtisanMakers\ArtisanMakersServiceProvider::class,
17+
];
18+
foreach ($providers as $provider) {
19+
$this->assertTrue(in_array($provider, $config));
20+
}
21+
}
22+
23+
/** @test */
24+
public function it_has_spatie_packages()
25+
{
26+
$config = config('app.providers');
27+
$providers = [
28+
\Spatie\Permission\PermissionServiceProvider::class,
29+
\Spatie\Analytics\AnalyticsServiceProvider::class,
30+
\Spatie\Menu\Laravel\MenuServiceProvider::class,
31+
\Spatie\GoogleCalendar\GoogleCalendarServiceProvider::class,
32+
\Spatie\Html\HtmlServiceProvider::class,
33+
];
34+
foreach ($providers as $provider) {
35+
$this->assertTrue(in_array($provider, $config));
36+
}
37+
}
38+
39+
/** @test */
40+
public function it_has_other_packages()
41+
{
42+
$config = config('app.providers');
43+
$providers = [
44+
\UxWeb\SweetAlert\SweetAlertServiceProvider::class,
45+
];
46+
foreach ($providers as $provider) {
47+
$this->assertTrue(in_array($provider, $config));
48+
}
49+
}
50+
}

tests/Unit/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!.gitignore

tests/Unit/ExampleTest.php

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)