mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Scaffold component test
This commit is contained in:
parent
105c94aea9
commit
dee6ebf8e0
|
@ -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');
|
||||
|
|
15
tests/Feature/Livewire/CategoryEditFormTest.php
Normal file
15
tests/Feature/Livewire/CategoryEditFormTest.php
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue