TYPO3 CMS  TYPO3_6-2
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

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

Protected Attributes

 $testObject
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = array('TYPO3_LOADED_EXT')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Additional Inherited Members

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

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Test case

Author
Andy Grunwald andre.nosp@m.as.g.nosp@m.runwa.nosp@m.ld@w.nosp@m.mdb.d.nosp@m.e

Definition at line 22 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 170 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 151 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
integer$expectedTimestampExpected value to compare with result from operation

Definition at line 77 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 44 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
integer$expectedTimestampExpected value to compare with result from operation

Definition at line 141 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 Testdata for "checkDateWithTypo3DateSyntax".

Definition at line 94 of file SchedulerModuleControllerTest.php.

◆ setUp()

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

Sets up each test case.

Returns
void

Definition at line 34 of file SchedulerModuleControllerTest.php.

Member Data Documentation

◆ $testObject

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

Definition at line 27 of file SchedulerModuleControllerTest.php.