saveDraft($values); app()->call([$theme, 'publish']); return $theme->published(); } public function test_switching_to_the_app_takes_matching_font_and_corners(): void { $published = $this->publish(['interface' => 'app']); $this->assertSame('app', $published['interface']); $this->assertSame('figtree', $published['font_body']); $this->assertSame('round', $published['radius']); // Zurück: wieder die Voreinstellung der klassischen Oberfläche $published = $this->publish(['interface' => 'classic']); $this->assertSame('inter', $published['font_body']); $this->assertSame('medium', $published['radius']); } public function test_own_font_choice_survives_the_switch(): void { $this->publish(['font_body' => 'lora', 'radius' => 'small']); $published = $this->publish(['interface' => 'app']); $this->assertSame('lora', $published['font_body']); $this->assertSame('small', $published['radius']); } public function test_page_carries_the_interface_and_the_app_uses_the_tile_start_page(): void { $this->publish(['interface' => 'app']); app(Homepage::class)->setMode('builder'); $response = $this->actingAs(User::factory()->create())->get('/'); $response->assertOk()->assertSee('data-ui="app"', false); $response->assertInertia(fn ($page) => $page->where('branding.interface', 'app')->has('widgets')->missing('content')); } public function test_classic_is_the_default(): void { $this->actingAs(User::factory()->create())->get('/') ->assertSee('data-ui="classic"', false) ->assertInertia(fn ($page) => $page->where('branding.interface', 'classic')); } }