Files
OrderCheck/tests/Feature/Auth/RegistrationTest.php
2026-06-15 08:13:42 +02:00

32 lines
712 B
PHP

<?php
namespace Tests\Feature\Auth;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class RegistrationTest extends TestCase
{
use RefreshDatabase;
public function test_registration_screen_is_disabled(): void
{
$response = $this->get('/register');
$response->assertStatus(404);
}
public function test_registration_post_is_disabled(): void
{
$response = $this->post('/register', [
'name' => 'Test User',
'email' => 'test@example.com',
'password' => 'password',
'password_confirmation' => 'password',
]);
$response->assertStatus(404);
$this->assertGuest();
}
}