Scaffold component test

This commit is contained in:
Marcus Moore 2023-08-02 12:58:07 -07:00
parent 105c94aea9
commit dee6ebf8e0
No known key found for this signature in database
2 changed files with 18 additions and 8 deletions

View file

@ -6,26 +6,21 @@ use Livewire\Component;
class CategoryEditForm extends Component
{
public bool $checkinEmail;
public $checkinEmail;
public $defaultEulaText;
public $eulaText;
public bool $requireAcceptance;
public $requireAcceptance;
public bool $useDefaultEula;
public $useDefaultEula;
public function mount()
{
}
public function updated($a, $b)
{
// dd($a, $b);
}
public function render()
{
return view('livewire.category-edit-form');

View file

@ -0,0 +1,15 @@
<?php
namespace Tests\Feature\Livewire;
use App\Http\Livewire\CategoryEditForm;
use Livewire\Livewire;
use Tests\TestCase;
class CategoryEditFormTest extends TestCase
{
public function testTheComponentCanRender()
{
Livewire::test(CategoryEditForm::class)->assertStatus(200);
}
}