mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-05-04 04:34:54 +00:00
✨ **Tests & Nullable Fixes:** Added tests to ensure no crashes when nullable Livewire properties are explicitly set to null. Updated several Livewire components to handle nullable properties gracefully. 🚀
This commit is contained in:
@@ -98,3 +98,19 @@ it('creates a city via createCity within the meetup-create flow', function () {
|
||||
|
||||
expect(City::query()->where('name', 'Hamburg')->exists())->toBeTrue();
|
||||
});
|
||||
|
||||
it('does not crash with PropertyNotFoundException when newCityLatitude is set to null', function () {
|
||||
actingAsUser();
|
||||
Livewire::test('meetups.create')
|
||||
->set('newCityLatitude', null)
|
||||
->assertStatus(200)
|
||||
->assertSet('newCityLatitude', null);
|
||||
});
|
||||
|
||||
it('does not crash with PropertyNotFoundException when newCityLongitude is set to null', function () {
|
||||
actingAsUser();
|
||||
Livewire::test('meetups.create')
|
||||
->set('newCityLongitude', null)
|
||||
->assertStatus(200)
|
||||
->assertSet('newCityLongitude', null);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user