deps: Composer-Update (Laravel 12.69.3, Livewire 4.4.7, Flux 2.20.1, Fortify 1.40.0), league/commonmark 2.10.3 behebt zwei Advisories; Sentry-SDKs für GlitchTip (sentry/sentry-laravel, @sentry/browser)
Livewire 4.4.7 rendert ModelNotFoundException im Testhelfer als 404 statt sie zu werfen — zwei Tests auf assertNotFound() umgestellt, Laufzeitverhalten unverändert. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
448643b4d8
commit
2079dfdaa8
6 changed files with 1008 additions and 397 deletions
|
|
@ -9,7 +9,6 @@ use App\Models\PressRelease;
|
|||
use App\Models\User;
|
||||
use App\Services\Auth\ContactAccessService;
|
||||
use Database\Seeders\RolesAndPermissionsSeeder;
|
||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
use Illuminate\Support\Facades\URL;
|
||||
use Livewire\Volt\Volt;
|
||||
|
|
@ -396,8 +395,8 @@ test('after the email basis is gone a non-author can no longer edit or correct t
|
|||
|
||||
// Die Korrektur-Action der Kundenseite hängt an `view` und findet die PM nicht mehr.
|
||||
$this->actingAs($gone);
|
||||
expect(fn () => Volt::test('customer.press-releases.show', ['id' => $published->id]))
|
||||
->toThrow(ModelNotFoundException::class);
|
||||
// Seit Livewire 4.4.7 als 404-Antwort statt geworfener ModelNotFoundException.
|
||||
Volt::test('customer.press-releases.show', ['id' => $published->id])->assertNotFound();
|
||||
});
|
||||
|
||||
test('an automatically upgraded manual membership falls back to member instead of being removed (E7)', function () {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ use App\Models\PressRelease;
|
|||
use App\Models\User;
|
||||
use App\Services\Customer\CustomerCompanyContext;
|
||||
use Database\Seeders\RolesAndPermissionsSeeder;
|
||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||
use Illuminate\Http\UploadedFile;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
|
|
@ -400,10 +399,12 @@ test('a deleted press kit contact disappears from the list and cannot be edited
|
|||
->call('deleteContact', $contact->id)
|
||||
->assertDontSee('Kontaktperson');
|
||||
|
||||
expect(fn () => LivewireVolt::test('customer.press-kits.show', ['id' => $company->id])
|
||||
// Seit Livewire 4.4.7 rendert der Testhelfer ModelNotFoundException wie
|
||||
// ein echter Request als 404, statt sie zu werfen.
|
||||
LivewireVolt::test('customer.press-kits.show', ['id' => $company->id])
|
||||
->assertDontSee('Kontaktperson')
|
||||
->call('editContact', $contact->id))
|
||||
->toThrow(ModelNotFoundException::class);
|
||||
->call('editContact', $contact->id)
|
||||
->assertNotFound();
|
||||
});
|
||||
|
||||
test('saving or deleting a press kit contact drops the cached newsroom page', function () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue