SilverStripe\Versioned\Tests\GraphQL\Legacy\Resolvers\ApplyVersionFiltersTest
Synopsis
class ApplyVersionFiltersTest
extends SapphireTest
{
- // members
- protected boolean $usesDatabase = true;
- protected static array $extra_dataobjects = ;
- // methods
- protected void setUp()
- public void testItValidatesArchiveDate()
- public void testItValidatesArchiveDateFormat()
- public void testItValidatesStatusParameter()
- public void testItValidatesVersionParameter()
- public void testItSetsReadingStateByMode()
- public void testItSetsReadingStateByArchiveDate()
- public void testItFiltersByStageOnApplyToList()
- public void testItThrowsIfArchiveAndNoDateOnApplyToList()
- public void testItThrowsIfArchiveAndInvalidDateOnApplyToList()
- public void testItThrowsIfVersionAndNoVersionOnApplyToList()
- public void testItSetsArchiveQueryParamsOnApplyToList()
- public void testItSetsVersionQueryParamsOnApplyToList()
- public void testItSetsLatestVersionQueryParamsOnApplyToList()
- public void testItSetsAllVersionsQueryParamsOnApplyToList()
- public void testItThrowsOnNoStatusOnApplyToList()
- public void testStatusOnApplyToList()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
protected
- $extra_dataobjects
- $usesDatabase
Methods
protected
public
- testItFiltersByStageOnApplyToList()
- testItSetsAllVersionsQueryParamsOnApplyToList()
- testItSetsArchiveQueryParamsOnApplyToList()
- testItSetsLatestVersionQueryParamsOnApplyToList()
- testItSetsReadingStateByArchiveDate()
- testItSetsReadingStateByMode()
- testItSetsVersionQueryParamsOnApplyToList()
- testItThrowsIfArchiveAndInvalidDateOnApplyToList()
- testItThrowsIfArchiveAndNoDateOnApplyToList()
- testItThrowsIfVersionAndNoVersionOnApplyToList()
- testItThrowsOnNoStatusOnApplyToList()
- testItValidatesArchiveDate()
- testItValidatesArchiveDateFormat()
- testItValidatesStatusParameter()
- testItValidatesVersionParameter()
- testStatusOnApplyToList()