mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-08 11:55:25 +00:00
28 lines
683 B
PHP
28 lines
683 B
PHP
<?php
|
|
|
|
namespace Tests\Feature\Livewire;
|
|
|
|
use App\Livewire\CategoryEditForm;
|
|
use Livewire\Livewire;
|
|
use Tests\TestCase;
|
|
|
|
class CategoryEditFormTest extends TestCase
|
|
{
|
|
public function testTheComponentCanRender()
|
|
{
|
|
Livewire::test(CategoryEditForm::class, [
|
|
'sendCheckInEmail' => true,
|
|
'useDefaultEula' => true,
|
|
])->assertStatus(200);
|
|
}
|
|
|
|
public function testEulaFieldEnabledOnLoadWhenNotUsingDefaultEula()
|
|
{
|
|
Livewire::test(CategoryEditForm::class, [
|
|
'sendCheckInEmail' => false,
|
|
'eulaText' => '',
|
|
'useDefaultEula' => false,
|
|
])->assertSet('eulaTextDisabled', false);
|
|
}
|
|
}
|