Checkout: minimize registration data
This commit is contained in:
@@ -20,13 +20,10 @@ class CheckoutRegisterRoleTest extends TestCase
|
||||
|
||||
$payload = [
|
||||
'email' => 'buyer@example.test',
|
||||
'username' => 'buyer',
|
||||
'password' => 'Password!123',
|
||||
'password_confirmation' => 'Password!123',
|
||||
'first_name' => 'Soren',
|
||||
'last_name' => 'Eberhardt',
|
||||
'address' => 'Example Street 1',
|
||||
'phone' => '123456789',
|
||||
'package_id' => $package->id,
|
||||
'terms' => true,
|
||||
'privacy_consent' => true,
|
||||
@@ -41,5 +38,6 @@ class CheckoutRegisterRoleTest extends TestCase
|
||||
|
||||
$this->assertNotNull($user);
|
||||
$this->assertSame('user', $user->role);
|
||||
$this->assertSame('buyer@example.test', $user->username);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user