invoke($controller, $template); } it('blocks controller-backed templates in the catch-all route', function (string $template) { expect(isRenderableTemplate($template))->toBeFalse(); })->with([ 'checkout', 'checkout-final', 'checkout-is-final', 'checkout-error', 'card', 'kontakt', 'registrierung', 'widerruf', ]); it('blocks blade partials starting with an underscore', function () { expect(isRenderableTemplate('_categories'))->toBeFalse(); }); it('blocks templates that do not exist', function () { expect(isRenderableTemplate('does-not-exist'))->toBeFalse(); }); it('allows plain content templates', function (string $template) { expect(isRenderableTemplate($template))->toBeTrue(); })->with([ 'aloevera', 'karrierechancen', 'vorteile', ]);