18 lines
408 B
PHP
18 lines
408 B
PHP
<?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');
|
|
});
|