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

Commit a150794

Browse files
committed
Use faker for UUID generation
1 parent c47ab49 commit a150794

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/DatabaseProviderTest.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@
1212
use Illuminate\Support\Facades\App;
1313
use Illuminate\Support\Facades\Hash;
1414
use Illuminate\Support\Facades\Auth;
15+
use Illuminate\Foundation\Testing\WithFaker;
1516

1617
class DatabaseProviderTest extends DatabaseTestCase
1718
{
19+
use WithFaker;
20+
1821
/**
1922
* @test
2023
* @expectedException \RuntimeException
@@ -40,7 +43,7 @@ public function auth_passes($credentials = null)
4043
$credentials = $credentials ?: ['email' => '[email protected]', 'password' => '12345'];
4144

4245
$user = $this->makeLdapUser([
43-
'objectguid' => ['cc07cacc-5d9d-fa40-a9fb-3a4d50a172b0'],
46+
'objectguid' => [$this->faker->uuid],
4447
'cn' => ['John Doe'],
4548
'userprincipalname' => ['[email protected]'],
4649
]);

0 commit comments

Comments
 (0)