add test batches
This commit is contained in:
@@ -97,7 +97,7 @@ class PreferencesControllerTest extends TestCase
|
||||
$user = $this->createUser('teacher');
|
||||
Sanctum::actingAs($user);
|
||||
|
||||
$response = $this->deleteJson('/api/v1/preferences/'.$user->id);
|
||||
$response = $this->deleteJson('/api/v1/preferences/' . $user->id);
|
||||
|
||||
$response->assertForbidden();
|
||||
}
|
||||
@@ -113,7 +113,7 @@ class PreferencesControllerTest extends TestCase
|
||||
'notification_sms' => 1,
|
||||
]);
|
||||
|
||||
$response = $this->deleteJson('/api/v1/preferences/'.$admin->id);
|
||||
$response = $this->deleteJson('/api/v1/preferences/' . $admin->id);
|
||||
|
||||
$response->assertOk();
|
||||
$this->assertDatabaseMissing('user_preferences', [
|
||||
@@ -146,7 +146,7 @@ class PreferencesControllerTest extends TestCase
|
||||
'id' => $id,
|
||||
'firstname' => 'Test',
|
||||
'lastname' => 'User',
|
||||
'email' => $roleName.$id.'@example.com',
|
||||
'email' => $roleName . $id . '@example.com',
|
||||
'cellphone' => '5555555555',
|
||||
'address_street' => '123 Main',
|
||||
'city' => 'City',
|
||||
|
||||
Reference in New Issue
Block a user