feat: Phase 5 - polish, validation, rate limiting, Dutch translations
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Feature\Auth;
|
||||
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
@@ -9,14 +11,14 @@ class RegistrationTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase;
|
||||
|
||||
public function test_registration_screen_can_be_rendered(): void
|
||||
public function test_registration_is_disabled(): void
|
||||
{
|
||||
$response = $this->get('/register');
|
||||
|
||||
$response->assertStatus(200);
|
||||
$response->assertNotFound();
|
||||
}
|
||||
|
||||
public function test_new_users_can_register(): void
|
||||
public function test_registration_post_is_rejected(): void
|
||||
{
|
||||
$response = $this->post('/register', [
|
||||
'name' => 'Test User',
|
||||
@@ -25,7 +27,7 @@ class RegistrationTest extends TestCase
|
||||
'password_confirmation' => 'password',
|
||||
]);
|
||||
|
||||
$this->assertAuthenticated();
|
||||
$response->assertRedirect(route('admin.dashboard', absolute: false));
|
||||
$response->assertNotFound();
|
||||
$this->assertGuest();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user