‪TYPO3CMS  11.5
TYPO3\CMS\Backend\Tests\Unit\Form\Element\InputDateTimeElementTest Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Tests\Unit\Form\Element\InputDateTimeElementTest:

Public Member Functions

 renderAppliesCorrectTimestampConversionDataProvider ()
 
 renderAppliesCorrectTimestampConversion (int $input, string $serverTimezone, string $expectedOutput)
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 

Protected Attributes

string $timezoneBackup = ''
 

Detailed Description

Test case

Definition at line 35 of file InputDateTimeElementTest.php.

Member Function Documentation

◆ renderAppliesCorrectTimestampConversion()

TYPO3\CMS\Backend\Tests\Unit\Form\Element\InputDateTimeElementTest::renderAppliesCorrectTimestampConversion ( int  $input,
string  $serverTimezone,
string  $expectedOutput 
)
Test:
‪@dataProvider renderAppliesCorrectTimestampConversionDataProvider

Definition at line 89 of file InputDateTimeElementTest.php.

References $GLOBALS.

◆ renderAppliesCorrectTimestampConversionDataProvider()

TYPO3\CMS\Backend\Tests\Unit\Form\Element\InputDateTimeElementTest::renderAppliesCorrectTimestampConversionDataProvider ( )

Data provider for renderAppliesCorrectTimestampConversion

Definition at line 64 of file InputDateTimeElementTest.php.

◆ setUp()

TYPO3\CMS\Backend\Tests\Unit\Form\Element\InputDateTimeElementTest::setUp ( )
protected

We're fiddling with hard timestamps in the tests, but time methods in the system under test do use timezone settings. Therefore we backup the current timezone setting, set it to UTC explicitly and reconstitute it again in tearDown()

Definition at line 49 of file InputDateTimeElementTest.php.

◆ tearDown()

TYPO3\CMS\Backend\Tests\Unit\Form\Element\InputDateTimeElementTest::tearDown ( )
protected

Definition at line 55 of file InputDateTimeElementTest.php.

Member Data Documentation

◆ $timezoneBackup

string TYPO3\CMS\Backend\Tests\Unit\Form\Element\InputDateTimeElementTest::$timezoneBackup = ''
protected

Definition at line 41 of file InputDateTimeElementTest.php.