SilverStripe\Versioned\Tests\VersionedOwnershipTest
Tests ownership API of versioned DataObjects
Synopsis
class VersionedOwnershipTest
extends SapphireTest
{
- // members
- protected static array $extra_dataobjects = ;
- protected static string $fixture_file = 'VersionedOwnershipTest.yml';
- // methods
- protected void setUp()
- protected void sleep()
- public void testFindOwned()
- public void testHasOwned()
- public void testFindOwners()
- public void testFindOwnersLive()
- public void testRecursivePublish()
- public void testUnversionedPublish()
- public void testRecursiveUnpublish()
- public void testRecursiveArchive()
- public void testRecursiveRevertToLive()
- public void testRollbackRecursive()
- public void testInferedOwners()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
protected
- $extra_dataobjects
- $fixture_file
Methods
protected
- setUp()
- sleep() — Virtual "sleep" that doesn't actually slow execution, only advances DBDateTime::now()
public
- testFindOwned() — Test basic findOwned() in stage mode
- testFindOwners() — Test findOwners
- testFindOwnersLive() — Test findOwners on Live stage
- testHasOwned()
- testInferedOwners() — Test that you can find owners without owned_by being defined explicitly
- testRecursiveArchive()
- testRecursivePublish() — Test that objects are correctly published recursively
- testRecursiveRevertToLive()
- testRecursiveUnpublish() — Test that owning objects don't get unpublished when object is unpublished
- testRollbackRecursive() — Test that rolling back to a single version works recursively
- testUnversionedPublish() — Test that unversioned objects that own versioned items can be published