knowledge(testing): license-entitlement failures on posted tables in a SaaS test run are environmental

This commit is contained in:
Nabil BA-MOH 2026-08-27 22:06:16 +08:00
parent 293f9b13e7
commit 3f9690ad45
3 changed files with 77 additions and 0 deletions

View file

@ -0,0 +1,24 @@
codeunit 50542 "Test Sample Posted Fixture Good"
{
Subtype = Test;
var
LibraryPurchase: Codeunit "Library - Purchase";
// Posted data is produced by posting, so the fixture runs under any license.
local procedure CreatePostedPurchaseInvoice(): Code[20]
var
PurchaseHeader: Record "Purchase Header";
begin
LibraryPurchase.CreatePurchaseInvoice(PurchaseHeader);
exit(LibraryPurchase.PostPurchaseDocument(PurchaseHeader, true, true));
end;
[Test]
procedure PostedInvoiceIsAvailable()
var
PurchInvHeader: Record "Purch. Inv. Header";
begin
PurchInvHeader.Get(CreatePostedPurchaseInvoice());
end;
}