Install Breeze

This commit is contained in:
Benjamin Nussbaum 2025-02-08 15:06:14 +01:00
parent 337c77f8a2
commit 32d63c09e7
55 changed files with 5782 additions and 88 deletions

View file

@ -0,0 +1,27 @@
<?php
namespace Tests\Feature\Auth;
use Livewire\Volt\Volt;
test('registration screen can be rendered', function () {
$response = $this->get('/register');
$response
->assertOk()
->assertSeeVolt('pages.auth.register');
});
test('new users can register', function () {
$component = Volt::test('pages.auth.register')
->set('name', 'Test User')
->set('email', 'test@example.com')
->set('password', 'password')
->set('password_confirmation', 'password');
$component->call('register');
$component->assertRedirect(route('dashboard', absolute: false));
$this->assertAuthenticated();
});