PHP Class eZ\Publish\Core\Persistence\Legacy\Tests\Content\FieldValue\Converter\DateAndTimeTest

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$converter eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\DateAndTimeConverter
$date DateTime

Public Methods

Method Description
testGenerateDateIntervalXML ( )
testGetDateIntervalFromXML ( )
testToFieldDefinitionCurrentDate ( )
testToFieldDefinitionNoDefault ( )
testToFieldDefinitionWithAdjustmentAndSeconds ( )
testToFieldDefinitionWithAdjustmentNoSeconds ( )
testToFieldValue ( )
testToStorageFieldDefinitionCurrentDate ( )
testToStorageFieldDefinitionNoDefault ( )
testToStorageFieldDefinitionWithAdjustment ( )
testToStorageValue ( )

Protected Methods

Method Description
setUp ( )

Private Methods

Method Description
getXMLStringFromDateInterval ( DateInterval $dateInterval ) : string Generates XML string from $dateInterval.
getXMLToDateIntervalMap ( ) : array Returns map from internal XML nodes to DateInterval properties for date adjustment.

Method Details

setUp() protected method

protected setUp ( )

testGenerateDateIntervalXML() public method

testGetDateIntervalFromXML() public method

testToFieldDefinitionCurrentDate() public method

testToFieldDefinitionNoDefault() public method

testToFieldDefinitionWithAdjustmentAndSeconds() public method

testToFieldDefinitionWithAdjustmentNoSeconds() public method

testToFieldValue() public method

public testToFieldValue ( )

testToStorageFieldDefinitionCurrentDate() public method

testToStorageFieldDefinitionNoDefault() public method

testToStorageFieldDefinitionWithAdjustment() public method

testToStorageValue() public method

public testToStorageValue ( )

Property Details

$converter protected property

protected DateAndTimeConverter,eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter $converter
return eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\DateAndTimeConverter

$date protected property

protected DateTime $date
return DateTime