<?php

it('wires EAN and public entry number into e-conomic invoice draft recipients', function (): void {
    $content = file_get_contents(app_path('modules/economic/endpoints/invoices/economic_invoices_drafts_endpoint.php'));

    expect($content)->not->toBeFalse();
    expect($content)->toContain('$customer->getEan()');
    expect($content)->toContain("\$recipient['ean']");
    expect($content)->toContain('$customer->getPublicEntryNumber()');
    expect($content)->toContain("\$recipient['publicEntryNumber']");
    expect($content)->toContain("'recipient' => \$recipient");
});
