-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8fa3362
commit 8580206
Showing
3 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,8 +27,8 @@ public function setUp(): void | |
public function is_an_instance_of_uuid_contract() | ||
{ | ||
$user = User::create([ | ||
'name' => 'Laravel Uuid', | ||
'email' => '[email protected]', | ||
'name' => 'Laravel Uuid', | ||
'email' => '[email protected]', | ||
'password' => 'password', | ||
]); | ||
$this->assertTrue($user instanceof HasUuidContract); | ||
|
@@ -38,10 +38,10 @@ public function is_an_instance_of_uuid_contract() | |
public function has_valid_uuid_on_created_record() | ||
{ | ||
$user = User::create([ | ||
'name' => 'Laravel Uuid', | ||
'email' => '[email protected]', | ||
'name' => 'Laravel Uuid', | ||
'email' => '[email protected]', | ||
'password' => 'password', | ||
'uuid' => uuid(), | ||
'uuid' => uuid(), | ||
]); | ||
$this->assertTrue($user instanceof HasUuidContract); | ||
$this->assertTrue(validUuid($user->uuid)); | ||
|
@@ -51,8 +51,8 @@ public function has_valid_uuid_on_created_record() | |
public function has_valid_uuid_on_created_record_using_uuid_observer() | ||
{ | ||
$user = User::create([ | ||
'name' => 'Laravel Uuid', | ||
'email' => '[email protected]', | ||
'name' => 'Laravel Uuid', | ||
'email' => '[email protected]', | ||
'password' => 'password', | ||
]); | ||
$this->assertTrue($user instanceof HasUuidContract); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,17 +15,17 @@ public function seedUsers() | |
{ | ||
$now = \Carbon\Carbon::now(); | ||
\DB::table('users')->insert([ | ||
'name' => 'PHPUnit', | ||
'email' => '[email protected]', | ||
'password' => \Hash::make('456'), | ||
'name' => 'PHPUnit', | ||
'email' => '[email protected]', | ||
'password' => \Hash::make('456'), | ||
'created_at' => $now, | ||
'updated_at' => $now, | ||
]); | ||
|
||
\DB::table('users')->insert([ | ||
'name' => 'PHPUnit', | ||
'email' => '[email protected]', | ||
'password' => \Hash::make('456'), | ||
'name' => 'PHPUnit', | ||
'email' => '[email protected]', | ||
'password' => \Hash::make('456'), | ||
'created_at' => $now, | ||
'updated_at' => $now, | ||
]); | ||
|