feat: add routes, lang, tests, stubs, docs, and docker configurations

This commit is contained in:
2026-05-21 16:05:16 +07:00
parent fad70d096b
commit 28a06315b8
3385 changed files with 177070 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
use Spatie\Permission\Models\Role;
test('registration screen can be rendered', function () {
$response = $this->get('/register');
$response->assertStatus(200);
});
test('new users can register', function () {
// Ensure the default role exists (not seeded in test DB)
Role::firstOrCreate(['name' => 'User', 'guard_name' => 'web']);
$response = $this->post('/register', [
'name' => 'Test User',
'email' => 'test@example.com',
'password' => 'Password1!',
'password_confirmation' => 'Password1!',
'agree_tos_pdp' => '1',
]);
$this->assertAuthenticated();
$response->assertRedirect(route('dashboard', absolute: false));
});