TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Scheduler\Tests\Unit\Controller\SchedulerModuleControllerTest Class Reference
Inheritance diagram for TYPO3\CMS\Scheduler\Tests\Unit\Controller\SchedulerModuleControllerTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 checkDateWithStrtotimeValuesDataProvider ()
 
 checkDateWithStrtotimeValues ($strToTimeValue)
 
 checkDateWithTypo3DateSyntaxDataProvider ()
 
 checkDateWithTypo3DateSyntax ($typo3DateValue, $expectedTimestamp)
 
 checkDateWithInvalidDateValuesDataProvider ()
 
 checkDateWithInvalidDateValues ($dateValue)
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, $methods=[], array $arguments=[], $mockClassName='', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=[], $mockClassName='', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 

Protected Attributes

 $testObject
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Test case

Definition at line 20 of file SchedulerModuleControllerTest.php.

Member Function Documentation

◆ checkDateWithInvalidDateValues()

TYPO3\CMS\Scheduler\Tests\Unit\Controller\SchedulerModuleControllerTest::checkDateWithInvalidDateValues (   $dateValue)

This test must be raised an InvalidArgumentException

checkDateWithInvalidDateValuesDataProvider

Test:
Parameters
string$dateValueTest value which will be passed to $this->testObject->checkDate.

Definition at line 173 of file SchedulerModuleControllerTest.php.

◆ checkDateWithInvalidDateValuesDataProvider()

TYPO3\CMS\Scheduler\Tests\Unit\Controller\SchedulerModuleControllerTest::checkDateWithInvalidDateValuesDataProvider ( )

Provides some invalid dates

See also
checkDateWithInvalidDateValues
Returns
array Test data for "checkDateWithInvalidDateValues".

Definition at line 153 of file SchedulerModuleControllerTest.php.

◆ checkDateWithStrtotimeValues()

TYPO3\CMS\Scheduler\Tests\Unit\Controller\SchedulerModuleControllerTest::checkDateWithStrtotimeValues (   $strToTimeValue)

checkDateWithStrtotimeValuesDataProvider

Test:
See also
http://de.php.net/manual/de/function.strtotime.php
Parameters
string$strToTimeValueTest value which will be passed to $this->testObject->checkDate

Definition at line 76 of file SchedulerModuleControllerTest.php.

◆ checkDateWithStrtotimeValuesDataProvider()

TYPO3\CMS\Scheduler\Tests\Unit\Controller\SchedulerModuleControllerTest::checkDateWithStrtotimeValuesDataProvider ( )

Data provider for checkDateWithStrtotimeValues

See also
checkDateWithStrtotimeValues
Returns
array Testdata for "checkDateWithStrtotimeValues".

Definition at line 43 of file SchedulerModuleControllerTest.php.

◆ checkDateWithTypo3DateSyntax()

TYPO3\CMS\Scheduler\Tests\Unit\Controller\SchedulerModuleControllerTest::checkDateWithTypo3DateSyntax (   $typo3DateValue,
  $expectedTimestamp 
)

checkDateWithTypo3DateSyntaxDataProvider

Test:
Parameters
string$typo3DateValueTest value which will be passed to $this->testObject->checkDate
int$expectedTimestampExpected value to compare with result from operation

Definition at line 142 of file SchedulerModuleControllerTest.php.

◆ checkDateWithTypo3DateSyntaxDataProvider()

TYPO3\CMS\Scheduler\Tests\Unit\Controller\SchedulerModuleControllerTest::checkDateWithTypo3DateSyntaxDataProvider ( )

Provides dates in TYPO3 date field formats (non-US), i.e. H:i Y-m-d

See also
checkDateWithTypo3DateSyntax
Returns
array Test data for "checkDateWithTypo3DateSyntax".

Definition at line 94 of file SchedulerModuleControllerTest.php.

◆ setUp()

TYPO3\CMS\Scheduler\Tests\Unit\Controller\SchedulerModuleControllerTest::setUp ( )
protected

Sets up each test case.

Returns
void

Definition at line 32 of file SchedulerModuleControllerTest.php.

Member Data Documentation

◆ $testObject

TYPO3\CMS\Scheduler\Tests\Unit\Controller\SchedulerModuleControllerTest::$testObject
protected

Definition at line 25 of file SchedulerModuleControllerTest.php.