mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-14 15:37:53 +00:00
This commit is contained in:
parent
c67a182cf2
commit
b4b6286172
89 changed files with 672 additions and 666 deletions
|
|
@ -5,13 +5,13 @@ use Livewire\Volt\Volt as LivewireVolt;
|
|||
|
||||
uses(Illuminate\Foundation\Testing\RefreshDatabase::class);
|
||||
|
||||
test('login screen can be rendered', function () {
|
||||
test('login screen can be rendered', function (): void {
|
||||
$response = $this->get('/login');
|
||||
|
||||
$response->assertStatus(200);
|
||||
});
|
||||
|
||||
test('users can authenticate using the login screen', function () {
|
||||
test('users can authenticate using the login screen', function (): void {
|
||||
$user = User::factory()->create();
|
||||
|
||||
$response = LivewireVolt::test('auth.login')
|
||||
|
|
@ -26,7 +26,7 @@ test('users can authenticate using the login screen', function () {
|
|||
$this->assertAuthenticated();
|
||||
});
|
||||
|
||||
test('users can not authenticate with invalid password', function () {
|
||||
test('users can not authenticate with invalid password', function (): void {
|
||||
$user = User::factory()->create();
|
||||
|
||||
$this->post('/login', [
|
||||
|
|
@ -37,7 +37,7 @@ test('users can not authenticate with invalid password', function () {
|
|||
$this->assertGuest();
|
||||
});
|
||||
|
||||
test('users can logout', function () {
|
||||
test('users can logout', function (): void {
|
||||
$user = User::factory()->create();
|
||||
|
||||
$response = $this->actingAs($user)->post('/logout');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue