refactor: update feature and unit test suites to improve test coverage and reliability

This commit is contained in:
Yoga Pangestu 2026-04-11 22:33:28 +07:00
parent 4b833c81c6
commit 05c7b8da04
12 changed files with 12 additions and 12 deletions

View File

@ -79,4 +79,4 @@
]);
$response->assertTooManyRequests();
});
});

View File

@ -97,4 +97,4 @@
Event::assertNotDispatched(Verified::class);
expect($user->fresh()->hasVerifiedEmail())->toBeTrue();
});
});

View File

@ -19,4 +19,4 @@
$response = $this->get(route('password.confirm'));
$response->assertRedirect(route('login'));
});
});

View File

@ -75,4 +75,4 @@
]);
$response->assertSessionHasErrors('email');
});
});

View File

@ -22,4 +22,4 @@
$this->assertAuthenticated();
$response->assertRedirect(route('dashboard', absolute: false));
});
});

View File

@ -38,4 +38,4 @@
->assertInertia(fn (Assert $page) => $page
->component('auth/two-factor-challenge'),
);
});
});

View File

@ -31,4 +31,4 @@
->assertRedirect(route('dashboard', absolute: false));
Notification::assertNothingSent();
});
});

View File

@ -13,4 +13,4 @@
$response = $this->get(route('dashboard'));
$response->assertOk();
});
});

View File

@ -4,4 +4,4 @@
$response = $this->get(route('home'));
$response->assertOk();
});
});

View File

@ -82,4 +82,4 @@
->assertRedirect(route('profile.edit'));
expect($user->fresh())->not->toBeNull();
});
});

View File

@ -111,4 +111,4 @@
$response
->assertSessionHasErrors('current_password')
->assertRedirect(route('security.edit'));
});
});

View File

@ -2,4 +2,4 @@
test('that true is true', function () {
expect(true)->toBeTrue();
});
});