mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-07 23:56:56 +01:00
knowledge(testing): license-entitlement failures on posted tables in a SaaS test run are environmental
This commit is contained in:
parent
293f9b13e7
commit
3f9690ad45
3 changed files with 77 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue