assertStatus(200); } public function testSendEmailCheckboxIsCheckedOnLoadWhenSendEmailIsExistingSetting() { Livewire::test(CategoryEditForm::class, [ 'sendCheckInEmail' => true, 'eulaText' => '', 'useDefaultEula' => false, ])->assertSet('sendCheckInEmail', true); } public function testSendEmailCheckboxIsCheckedOnLoadWhenCategoryEulaSet() { Livewire::test(CategoryEditForm::class, [ 'sendCheckInEmail' => false, 'eulaText' => 'Some Content', 'useDefaultEula' => false, ])->assertSet('sendCheckInEmail', true); } public function testSendEmailCheckboxIsCheckedOnLoadWhenUsingDefaultEula() { Livewire::test(CategoryEditForm::class, [ 'sendCheckInEmail' => false, 'eulaText' => '', 'useDefaultEula' => true, ])->assertSet('sendCheckInEmail', true); } public function testSendEmailCheckBoxIsUncheckedOnLoadWhenSendEmailIsFalseNoCategoryEulaSetAndNotUsingDefaultEula() { Livewire::test(CategoryEditForm::class, [ 'sendCheckInEmail' => false, 'eulaText' => '', 'useDefaultEula' => false, ])->assertSet('sendCheckInEmail', false); } public function testSendEmailCheckboxIsCheckedWhenCategoryEulaEntered() { Livewire::test(CategoryEditForm::class, [ 'sendCheckInEmail' => false, 'useDefaultEula' => false, ])->assertSet('sendCheckInEmail', false) ->set('eulaText', 'Some Content') ->assertSet('sendCheckInEmail', true); } public function testSendEmailCheckboxCheckedWhenUseDefaultEulaSelected() { Livewire::test(CategoryEditForm::class, [ 'sendCheckInEmail' => false, 'useDefaultEula' => false, ])->assertSet('sendCheckInEmail', false) ->set('useDefaultEula', true) ->assertSet('sendCheckInEmail', true); } }