-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance test for Media Cleanup (#2118)
#### Summary <!-- Provide a general summary of your changes --> Previously, we are only testing to see if Medias are cleaned up properly, adding test to ensure that we are not cleanup Media that aren't supposed to be cleaned up. #### Work Item(s) <!-- Add the issue number here after the #. The issue needs to be open and approved. Submitting PRs with no linked issues or unapproved issues is highly discouraged. --> Fixes [AB#550939](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/550939)
- Loading branch information
Showing
2 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/System Application/Test/Data Administration/src/TestMediaCleanup.Table.al
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// ------------------------------------------------------------------------------------------------ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for license information. | ||
// ------------------------------------------------------------------------------------------------ | ||
|
||
namespace System.Test.DataAdministration; | ||
|
||
table 135018 "Test Media Cleanup" | ||
{ | ||
DataClassification = CustomerContent; | ||
InherentPermissions = RIMDX; | ||
InherentEntitlements = RIMDX; | ||
|
||
fields | ||
{ | ||
field(1; "Primary Key"; Integer) | ||
{ | ||
} | ||
field(2; "Test Media"; Media) | ||
{ | ||
} | ||
field(3; "Test Media Set"; MediaSet) | ||
{ | ||
} | ||
} | ||
|
||
keys | ||
{ | ||
key(PK; "Primary Key") | ||
{ | ||
Clustered = true; | ||
} | ||
} | ||
} |