diff --git a/app/Livewire/CategoryEditForm.php b/app/Livewire/CategoryEditForm.php index 28a06657c1..fd8bef6489 100644 --- a/app/Livewire/CategoryEditForm.php +++ b/app/Livewire/CategoryEditForm.php @@ -12,11 +12,11 @@ class CategoryEditForm extends Component public $originalSendCheckInEmailValue; - public $requireAcceptance; + public bool $requireAcceptance; - public $sendCheckInEmail; + public bool $sendCheckInEmail; - public $useDefaultEula; + public bool $useDefaultEula; public function mount() { diff --git a/resources/views/categories/edit.blade.php b/resources/views/categories/edit.blade.php index 96ef8e08a8..ddf1b1cf76 100755 --- a/resources/views/categories/edit.blade.php +++ b/resources/views/categories/edit.blade.php @@ -26,9 +26,9 @@ @include ('partials.forms.edit.image-upload', ['image_path' => app('categories_upload_path')]) diff --git a/resources/views/livewire/category-edit-form.blade.php b/resources/views/livewire/category-edit-form.blade.php index 82dbf57e85..91cb26da51 100644 --- a/resources/views/livewire/category-edit-form.blade.php +++ b/resources/views/livewire/category-edit-form.blade.php @@ -23,12 +23,25 @@
@if ($defaultEulaText!='') @else @endif @@ -39,7 +52,13 @@
@@ -49,7 +68,14 @@
@if ($this->shouldDisplayEmailMessage) diff --git a/tests/Feature/Livewire/CategoryEditFormTest.php b/tests/Feature/Livewire/CategoryEditFormTest.php index a439f544ac..4596af120a 100644 --- a/tests/Feature/Livewire/CategoryEditFormTest.php +++ b/tests/Feature/Livewire/CategoryEditFormTest.php @@ -10,7 +10,10 @@ class CategoryEditFormTest extends TestCase { public function testTheComponentCanRender() { - Livewire::test(CategoryEditForm::class)->assertStatus(200); + Livewire::test(CategoryEditForm::class, [ + 'sendCheckInEmail' => true, + 'useDefaultEula' => true, + ])->assertStatus(200); } public function testSendEmailCheckboxIsCheckedOnLoadWhenSendEmailIsExistingSetting()