Exportlink direkt in der Portalkonfiguration anzeigen
Deploy FeWo mit PipelineManager / deploy (push) Successful in 2m34s
Deploy FeWo mit PipelineManager / deploy (push) Successful in 2m34s
This commit is contained in:
1 parent
2893192344
commit
0be1cfcdb8
4 files changed
+18
-1
No files matched your search
@@ -64,7 +64,10 @@ public function test_editing_preserves_the_link_and_the_independent_configuratio
|
||||
$b = Channel::factory()->for($property)->create();
|
||||
$token = $a->export_token;
|
||||
$this->actingAs(User::factory()->create());
|
||||
Livewire::test(EditChannel::class, ['record' => $a->id])->fillForm(['name' => 'Individuell gepflegt', 'import_enabled' => false, 'export_enabled' => true, 'external_poll_minutes' => 90])->call('save')->assertHasNoFormErrors();
|
||||
Livewire::test(EditChannel::class, ['record' => $a->id])
|
||||
->assertSee('Eigener iCal-Exportlink')
|
||||
->assertSee($a->export_token)
|
||||
->fillForm(['name' => 'Individuell gepflegt', 'import_enabled' => false, 'export_enabled' => true, 'external_poll_minutes' => 90])->call('save')->assertHasNoFormErrors();
|
||||
$this->assertSame(['Individuell gepflegt', false, true, 90, $token], [$a->fresh()->name, $a->fresh()->import_enabled, $a->fresh()->export_enabled, $a->fresh()->external_poll_minutes, $a->fresh()->export_token]);
|
||||
$this->assertTrue($b->fresh()->import_enabled);
|
||||
$this->assertSame('https://portal.example/calendar.ics', $a->fresh()->setting('import_url'));
|
||||
|
||||
Reference in new issue
Block a user