Initial commit: Laravel 13 base with Livewire 4, Flux UI and MySQL
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
use Livewire\Livewire;
|
||||
|
||||
it('renders the home page', function () {
|
||||
$this->get(route('home'))
|
||||
->assertOk()
|
||||
->assertSee('Toiminnanohjaus');
|
||||
});
|
||||
|
||||
it('increments the click count', function () {
|
||||
Livewire::test('pages::home')
|
||||
->assertSet('clickCount', 0)
|
||||
->call('incrementClickCount')
|
||||
->assertSet('clickCount', 1)
|
||||
->assertSee('Klikattu 1 kertaa');
|
||||
});
|
||||
Reference in New Issue
Block a user