tipo: modificación del cpanel y gitignore de la carpeta vendor

This commit is contained in:
2026-07-07 11:35:09 -06:00
parent a0c91dc567
commit 676ef0d506
8510 changed files with 1132803 additions and 4 deletions
@@ -0,0 +1,35 @@
<?php
use Laravel\Fortify\Features;
use Laravel\Jetstream\Jetstream;
test('registration screen can be rendered', function () {
$response = $this->get('/register');
$response->assertStatus(200);
})->skip(function () {
return ! Features::enabled(Features::registration());
}, 'Registration support is not enabled.');
test('registration screen cannot be rendered if support is disabled', function () {
$response = $this->get('/register');
$response->assertStatus(404);
})->skip(function () {
return Features::enabled(Features::registration());
}, 'Registration support is enabled.');
test('new users can register', function () {
$response = $this->post('/register', [
'name' => 'Test User',
'email' => 'test@example.com',
'password' => 'password',
'password_confirmation' => 'password',
'terms' => Jetstream::hasTermsAndPrivacyPolicyFeature(),
]);
$this->assertAuthenticated();
$response->assertRedirect(route('dashboard', absolute: false));
})->skip(function () {
return ! Features::enabled(Features::registration());
}, 'Registration support is not enabled.');