\MigrateToDocumentSetsTaskTest
Synopsis
class MigrateToDocumentSetsTaskTest
extends SapphireTest
{
- // members
- protected static string $fixture_file = 'MigrateToDocumentSetsTaskTest.yml';
- // methods
- public void testCanOutputToCliOrBrowser()
- public array outputProvider()
- public void testShowErrorOnInvalidAction()
- public void testCreateDefaultDocumentSets()
- public void testReassignDocumentsToFirstSet()
- protected string runTask()
- protected void fixtureOldRelations()
Hierarchy
Extends
- SapphireTest
Members
protected
- $fixture_file
Methods
protected
- fixtureOldRelations() — Set up the old many many relationship table from documents to pages
- runTask() — Centralises (slightly) logic for capturing direct output from the task
public
- outputProvider()
- testCanOutputToCliOrBrowser() — Ensure that output is formatted either for the CLI or browser
- testCreateDefaultDocumentSets() — Test that default document sets can be created for those pages that don't have them already
- testReassignDocumentsToFirstSet() — Test that legacy ORM relationship maps are migrated to the new page -> document set -> document relationship
- testShowErrorOnInvalidAction() — Ensure that providing an invalid action returns an error