Source of file ThreeStepWorkflowReportsTest.php
Size: 1,493 Bytes - Last Modified: 2021-12-23T10:28:49+00:00
/var/www/docs.ssmods.com/process/src/tests/ThreeStepWorkflowReportsTest.php
1234567891011121314151617181920212223242526272829303132333435363738394041424344 | <?php /** * @package cmsworkflow * @subpackage tests */ class ThreeStepWorkflowReportsTest extends FunctionalTest { protected $illegalExtensions = array( 'SiteTree' => array('SiteTreeCMSTwoStepWorkflow'), 'SiteConfig' => array('SiteConfigTwoStepWorkflow'), 'WorkflowRequest' => array('WorkflowTwoStepRequest'), ); protected $requiredExtensions = array( 'SiteTree' => array('SiteTreeCMSThreeStepWorkflow'), 'WorkflowRequest' => array('WorkflowThreeStepRequest'), 'LeftAndMain' => array('LeftAndMainCMSThreeStepWorkflow'), 'SiteConfig' => array('SiteConfigThreeStepWorkflow'), ); public static $extensionsToReapply = array(); public static $extensionsToRemoveAfter = array(); public function testBasicSanity() { $reports = array( 'ApprovedDeletions3StepReport', 'ApprovedPublications3StepReport', 'UnapprovedDeletions3StepReport', 'UnapprovedPublications3StepReport' ); foreach ($reports as $class) { $report = new $class; $this->assertTrue($report->canView()); $this->assertTrue(is_string($report->group())); $this->assertTrue(is_string($report->title())); $this->assertTrue(is_array($report->columns())); $fields = $report->parameterFields(); if ($fields) { $this->assertTrue($fields instanceof FieldSet); } } } } |