setup wizard debug

This commit is contained in:
Čarodej
2022-03-13 18:30:03 +01:00
parent 2bba6dc051
commit 5e48af22a2
100 changed files with 308 additions and 300 deletions

View File

@@ -63,8 +63,8 @@ class SocialiteTest extends TestCase
// Replace Socialite Instance with mock
$this->app->instance(Socialite::class, $stub);
$this->getJson('/api/socialite/facebook/callback')
->assertCreated();
$this->getJson('/socialite/facebook/callback')
->assertRedirect();
$this
->assertDatabaseHas('users', [

View File

@@ -151,11 +151,8 @@ class UserAccountTest extends TestCase
'id' => (string) $user->id,
'type' => 'user',
'attributes' => [
'avatar' => [
'md' => 'http://localhost/assets/images/default-avatar.png',
'sm' => 'http://localhost/assets/images/default-avatar.png',
'xs' => 'http://localhost/assets/images/default-avatar.png',
],
'avatar' => null,
'color' => $user->settings->color,
'email' => $user->email,
'role' => $user->role,
'socialite_account' => false,
@@ -204,6 +201,12 @@ class UserAccountTest extends TestCase
'favourites' => [
'data' => [],
],
'readNotifications' => [
'data' => [],
],
'unreadNotifications' => [
'data' => [],
],
],
],
]);

View File

@@ -24,7 +24,7 @@ class NotificationsTest extends TestCase
'notifiable_type' => 'App\Users\Models\User',
'notifiable_id' => $user->id,
'data' => json_encode([
'type' => 'file-request',
'category' => 'file-request',
'title' => 'File Request Filled',
'description' => "Your file request for 'Documents' folder was filled successfully.",
'action' => [
@@ -44,7 +44,7 @@ class NotificationsTest extends TestCase
->actingAs($user)
->getJson('/api/user/notifications')
->assertJsonFragment([
'type' => 'file-request',
'category' => 'file-request',
])
->assertStatus(200);
}