\DMSTest
Synopsis
class DMSTest
extends FunctionalTest
{
- // members
- protected static string $fixture_file = 'dmstest.yml';
- 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-1234';
- protected DMSInterace $dms;
- // methods
- public void setUp()
- public void tearDown()
- public void testDMSStorage()
- public void testDMSFolderSpanning()
- public void testReplaceDocument()
- public void testGetByPageWithoutEmbargoes()
- public void testGetByPageWithEmbargoedDocuments()
- public void testShortcodeHandlerKeyIsConfigurable()
- public void testGetDocumentSetsByPage()
- public void testFolderExcludedFromFilesystemSync()
Hierarchy
Extends
- FunctionalTest
Members
protected
- $dms — DMSInterace
- $fixture_file
- $testDmsPath
—
string
The test folder to write assets into
public
- $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 it out in case of previous broken tests
- tearDown() — Delete the test folder after the test runs
- testDMSFolderSpanning()
- testDMSStorage()
- testFolderExcludedFromFilesystemSync() — Ensure that assets/* folders are not included in filesystem sync operations
- testGetByPageWithEmbargoedDocuments() — Test that embargoed documents are excluded from getByPage
- testGetByPageWithoutEmbargoes() — Test that documents can be returned by a given page
- testGetDocumentSetsByPage() — Test that document sets can be retrieved for a given page
- testReplaceDocument()
- testShortcodeHandlerKeyIsConfigurable() — Ensure the shortcode handler key is configurable