withoutMiddleware([ CheckForSetup::class, CheckForDebug::class, ]); if ($oldInput !== null) { $call = $call->withSession(['_old_input' => $oldInput]); } return $call->get('/__test/checkbox-inline')->assertOk()->getContent(); } private function item(): object { return new class { public bool $enabled = true; public bool $disabled_flag = false; public static function rules() { return ['enabled' => 'required|boolean']; } }; } public function test_does_not_emit_form_group_wrapper() { // Inline variant must not carry a form-group class; the caller // controls its own row layout in bulk-edit views. $html = $this->render([ 'name' => 'null_name', 'label' => 'Set to null', ]); $this->assertStringNotContainsString('form-group', $html); $this->assertStringContainsString('