SilverStripe\VersionedAdmin\Tests\Controllers\HistoryViewerControllerTest
Synopsis
class HistoryViewerControllerTest
extends SapphireTest
{
- // members
- protected static string $fixture_file = 'HistoryViewerControllerTest.yml';
- protected static array $extra_dataobjects = ;
- // methods
- public void testGetClientConfig()
- public void testSchema()
- public void testGetVersionFormThrowsExceptionWhenArgsAreMissing()
- public void testGetVersionFormThrowsExceptionWhenArgsAreFalsy()
- public void testGetVersionFormThrowsExceptionWhenRecordVersionDoesntExist()
- public void testGetVersionFormThrowsExceptionWhenCanViewIsFalse()
- public void testGetVersionFormReturnsForm()
- public void testVersionFormThrowsExceptionWithoutRequest()
- public void testCompareFormThrowsExceptionWithoutRequest()
- public void testVersionFormThrowsExceptionWhenArgsAreFalsy()
- public void testVersionFormReturnsVersionForm()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
protected
- $extra_dataobjects
- $fixture_file
Methods
public
- testCompareFormThrowsExceptionWithoutRequest()
- testGetClientConfig()
- testGetVersionFormReturnsForm()
- testGetVersionFormThrowsExceptionWhenArgsAreFalsy()
- testGetVersionFormThrowsExceptionWhenArgsAreMissing()
- testGetVersionFormThrowsExceptionWhenCanViewIsFalse()
- testGetVersionFormThrowsExceptionWhenRecordVersionDoesntExist()
- testSchema()
- testVersionFormReturnsVersionForm()
- testVersionFormThrowsExceptionWhenArgsAreFalsy()
- testVersionFormThrowsExceptionWithoutRequest()