Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
nasrulhazim authored and actions-user committed Feb 12, 2022
1 parent 8fa3362 commit 8580206
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions tests/Feature/UuidTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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));
Expand All @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions tests/Traits/TestCaseTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ protected function getEnvironmentSetUp($app)
// Setup default database to use sqlite :memory:
$app['config']->set('database.default', 'testbench');
$app['config']->set('database.connections.testbench', [
'driver' => 'sqlite',
'driver' => 'sqlite',
'database' => ':memory:',
'prefix' => '',
'prefix' => '',
]);
}

Expand Down
12 changes: 6 additions & 6 deletions tests/Traits/UserTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]);
Expand Down

0 comments on commit 8580206

Please sign in to comment.