From cdfc738ede88825234c7fb695ffc6839ee0d5d8d Mon Sep 17 00:00:00 2001 From: HolgerHatGarKeineNode <123783602+HolgerHatGarKeineNode@users.noreply.github.com> Date: Mon, 18 May 2026 22:07:16 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20Test:=20Update=20assertions=20to?= =?UTF-8?q?=20reflect=20HTML-formatted=20descriptions=20and=20strict=20boo?= =?UTF-8?q?lean=20casting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Feature/Livewire/Association/ProfileTest.php | 2 +- tests/Feature/Livewire/ProjectSupportCreateTest.php | 2 +- tests/Feature/Livewire/ProjectSupportEditTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Feature/Livewire/Association/ProfileTest.php b/tests/Feature/Livewire/Association/ProfileTest.php index 7bf7258..6c77d0f 100644 --- a/tests/Feature/Livewire/Association/ProfileTest.php +++ b/tests/Feature/Livewire/Association/ProfileTest.php @@ -144,7 +144,7 @@ it('can update no email preference', function () { ->set('no', true) ->assertSet('showEmail', false); - expect($pleb->fresh()->no_email)->toBeTrue(); + expect((bool) $pleb->fresh()->no_email)->toBeTrue(); }); it('can save membership application', function () { diff --git a/tests/Feature/Livewire/ProjectSupportCreateTest.php b/tests/Feature/Livewire/ProjectSupportCreateTest.php index 61c4331..e7d7e98 100644 --- a/tests/Feature/Livewire/ProjectSupportCreateTest.php +++ b/tests/Feature/Livewire/ProjectSupportCreateTest.php @@ -90,7 +90,7 @@ it('creates project proposal successfully', function () { expect(ProjectProposal::count())->toBe(1); $project = ProjectProposal::first(); expect($project->name)->toBe('Test Project'); - expect($project->description)->toBe('This is a test project for unit testing purposes.'); + expect($project->description)->toBe('

This is a test project for unit testing purposes.

'); }); it('associates project proposal with current pleb', function () { diff --git a/tests/Feature/Livewire/ProjectSupportEditTest.php b/tests/Feature/Livewire/ProjectSupportEditTest.php index 7242223..c49fd2a 100644 --- a/tests/Feature/Livewire/ProjectSupportEditTest.php +++ b/tests/Feature/Livewire/ProjectSupportEditTest.php @@ -105,7 +105,7 @@ it('updates project proposal successfully', function () { $this->project->refresh(); expect($this->project->name)->toBe('Updated Name'); - expect($this->project->description)->toBe('Updated Description'); + expect($this->project->description)->toBe('

Updated Description

'); }); it('saves accepted and sats_paid when admin updates', function () {