Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 518bd05

Browse files
committed
Small test tweaks.
1 parent 09d40db commit 518bd05

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tests/TestCase.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
namespace Adldap\Laravel\Tests;
44

55
use Adldap\Connections\Ldap;
6+
use Adldap\Laravel\AdldapAuthServiceProvider;
7+
use Adldap\Laravel\AdldapServiceProvider;
8+
use Adldap\Laravel\Facades\Adldap;
9+
use Adldap\Laravel\Tests\Models\User;
610
use Adldap\Schemas\ActiveDirectory;
711
use Illuminate\Support\Facades\Schema;
812
use Orchestra\Testbench\TestCase as BaseTestCase;
@@ -57,7 +61,7 @@ protected function getEnvironmentSetup($app)
5761
$app['config']->set('auth.providers', [
5862
'adldap' => [
5963
'driver' => 'adldap',
60-
'model' => 'Adldap\Laravel\Tests\Models\User',
64+
'model' => User::class,
6165
],
6266
]);
6367
}
@@ -72,8 +76,8 @@ protected function getEnvironmentSetup($app)
7276
protected function getPackageProviders($app)
7377
{
7478
return [
75-
'Adldap\Laravel\AdldapServiceProvider',
76-
'Adldap\Laravel\AdldapAuthServiceProvider',
79+
AdldapServiceProvider::class,
80+
AdldapAuthServiceProvider::class,
7781
];
7882
}
7983

@@ -87,7 +91,7 @@ protected function getPackageProviders($app)
8791
protected function getPackageAliases($app)
8892
{
8993
return [
90-
'Adldap' => 'Adldap\Laravel\Facades\Adldap',
94+
'Adldap' => Adldap::class,
9195
];
9296
}
9397
}

0 commit comments

Comments
 (0)