\MigrateTaskTest
Synopsis
class MigrateTaskTest
extends SapphireTest
{
- // members
- protected static string $fixture_file = 'MigrateTaskTest.yml';
- protected array $extraDataObjects = ;
- protected MigrateTask $task;
- // methods
- public void setUp()
- public void testEnsureWorking()
- public void testLatestBatch()
- public void testTransactionRollback()
- public void testChangePageType()
- public void testPublish()
- public void testTransitionField()
- public void testGetTableForField()
Hierarchy
Extends
- SapphireTest
Tasks
Line | Task |
---|---|
40 | Ensure changes are rolled back in case there is an exception. |
44 | Ensure that page type can be changed properly and is set in both draft/published versions. |
46 | Ensure that only "Page" instances are allowed as PageType's. |
50 | Ensure that changes performed on published pages are retained. |
52 | Ensure that changes performed on unpublished pages (with NO published version) are still at least retained in draft. |
54 | Ensure that changes performed on unpublished pages (WITH published version) are still retained in draft with published version unchanged. |
58 | Make sure values are retained from old -> new. |
60 | Make sure values are properly transformed from old -> new |
Members
protected
- $extraDataObjects
- $fixture_file
- $task — MigrateTask