🤩 File Manager - Mr.X
PHP:
8.3.33
Server:
Apache
OS:
Linux 5.14.0-611.49.1.el9_7.x86_64
User:
websparkit
Navigate
Upload:
Upload
New File
New Folder
Editing:RegistrationTest.php
<?php namespace Tests\Feature\Auth; use Illuminate\Foundation\Testing\RefreshDatabase; use Livewire\Volt\Volt; use Tests\TestCase; class RegistrationTest extends TestCase { use RefreshDatabase; public function test_registration_screen_can_be_rendered(): void { $response = $this->get('/register'); $response ->assertOk() ->assertSeeVolt('pages.auth.register'); } public function test_new_users_can_register(): void { $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(); } }
Save Changes
Cancel
Create New File
Create New Folder