\DMSVersioningTest
Synopsis
class DMSVersioningTest
extends SapphireTest
{
- // members
- protected boolean $usesDatabase = true;
- public static string $testFile = 'dms/tests/DMS-test-lorum-file.pdf';
- public static string $testFile2 = 'dms/tests/DMS-test-document-2.pdf';
- protected string $testDmsPath = 'assets/_dms-assets-test-versions';
- public static $dmsEnableVersionsOld;
- // methods
- public void setUp()
- public void tearDown()
- public void testDMSVersionStorage()
Hierarchy
Extends
- SapphireTest
Members
protected
- $testDmsPath
—
string
The test folder to write assets into - $usesDatabase
public
-
$dmsEnableVersionsOld
Store values to reset back to after this test runs - $testFile
—
string
Stub PDF files for testing - $testFile2
Methods
public
- setUp() — Use a test DMS folder, so we don't overwrite the live one, and clear out the test folder (in case a broken test doesn't delete it)
- tearDown() — Delete the test folder after the tests run
- testDMSVersionStorage()