SilverStripe\Snapshots\Tests\SnapshotTest
Synopsis
class SnapshotTest
extends SnapshotTestAbstract
{
- // members
- protected boolean $usesTransactions = false;
- // Inherited members from SnapshotTestAbstract
- protected boolean $usesDatabase;
- protected static array $extra_dataobjects;
- // methods
- public void testGetOriginItem()
- public void testAddObjectLimit()
- public void testAddObjectDuplication()
- public void testAddObjectAsSnapshotItem()
- public void testGetOriginVersion()
- public void testCreateSnapshotNoRelations()
- public void testCreateSnapshotWithImplicitModifications()
- public void testCreateSnapshotEvent()
- public void testAddOwnershipChain()
- public void testApplyOrigin()
- public void testIsLiveSnapshot()
- // Inherited methods from SnapshotTestAbstract
- protected void mockSnapshot()
- protected void createHistory()
- protected string sleep()
- protected void snapshot()
- protected void publish()
- protected void buildState()
- protected void assertItems()
- protected void assertObjects()
- protected void assertOrigins()
- protected void assertHashCompare()
- protected void assertHashCompareList()
Hierarchy
Members
protected
- $extra_dataobjects
- $usesDatabase
- $usesTransactions
Methods
public
- testAddObjectAsSnapshotItem()
- testAddObjectDuplication()
- testAddObjectLimit()
- testAddOwnershipChain()
- testApplyOrigin()
- testCreateSnapshotEvent()
- testCreateSnapshotNoRelations()
- testCreateSnapshotWithImplicitModifications()
- testGetOriginItem()
- testGetOriginVersion()
- testIsLiveSnapshot()
Inherited from SilverStripe\Snapshots\Tests\SnapshotTestAbstract
protected
- assertHashCompare()
- assertHashCompareList()
- assertItems()
- assertObjects()
- assertOrigins()
- buildState()
- createHistory()
- mockSnapshot()
- publish()
- sleep() — Virtual "sleep" that doesn't actually slow execution, only advances DBDateTime::now()
- snapshot()