Namensweitergabe direkt abschaltbar machen und reale Regelresultate dokumentieren
Deploy FeWo mit PipelineManager / deploy (push) Successful in 2m39s

This commit is contained in:
Lars committed 2026-10-27 19:14:39 +01:00
1 parent e9db98701b
commit 7c7955b982
6 files changed
+39 -20

No files matched your search

+5 -6
View File
@@ -202,12 +202,8 @@ public function test_export_requires_names_permission_and_keeps_uid_dates_and_or
$parser = app(ICalParser::class);
$feed = app(ICalFeed::class);
$before = $parser->parse($feed->build($target));
try {
app(ConfigureChannelExport::class)->handle($target, $mapping, false);
$this->fail('Names need explicit permission.');
} catch (ValidationException $e) {
$this->assertArrayHasKey('export_names', $e->errors());
}
$target = app(ConfigureChannelExport::class)->handle($target, $mapping, false);
$this->assertFalse($target->ical_export_names);
$this->assertStringNotContainsString('Lea', $feed->build($target));
$target = app(ConfigureChannelExport::class)->handle($target, $mapping, true);
$after = $parser->parse($feed->build($target));
@@ -263,6 +259,9 @@ public function test_export_mapping_can_be_previewed_and_saved_from_the_same_pag
$page->call('save')->assertHasNoFormErrors();
$this->assertTrue($target->fresh()->ical_export_names);
$this->assertStringContainsString('SUMMARY:Lea', app(ICalFeed::class)->build($target->fresh()));
$page->fillForm(['export_names' => false])->call('save')->assertHasNoFormErrors();
$this->assertFalse($target->fresh()->ical_export_names);
$this->assertStringNotContainsString('Lea', app(ICalFeed::class)->build($target->fresh()));
}
public function test_own_bookings_supply_real_full_names_only_when_enabled_for_that_target(): void