<?php

it('skips zero-cost and zero-quantity items in legacy economic draft helper', function (): void {
    $content = file_get_contents(app_path('modules/economic/helpers/economic_invoice_draft.php'));

    expect($content)->not->toBeFalse();
    expect($content)->toContain('private function shouldSkipOrderItemLine(array $order_item): bool');
    expect($content)->toContain('if ($this->shouldSkipOrderItemLine($order_item))');
    expect($content)->toContain('continue;');
});
