mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -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
|
class CategoryEditForm extends Component
|
||||||
{
|
{
|
||||||
public bool $checkinEmail;
|
public $checkinEmail;
|
||||||
|
|
||||||
public $defaultEulaText;
|
public $defaultEulaText;
|
||||||
|
|
||||||
public $eulaText;
|
public $eulaText;
|
||||||
|
|
||||||
public bool $requireAcceptance;
|
public $requireAcceptance;
|
||||||
|
|
||||||
public bool $useDefaultEula;
|
public $useDefaultEula;
|
||||||
|
|
||||||
public function mount()
|
public function mount()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function updated($a, $b)
|
|
||||||
{
|
|
||||||
// dd($a, $b);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
return view('livewire.category-edit-form');
|
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