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

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Protected Properties

Свойство Type Description
$converter eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\DateAndTimeConverter
$date DateTime

Méthodes publiques

Méthode Description
testGenerateDateIntervalXML ( )
testGetDateIntervalFromXML ( )
testToFieldDefinitionCurrentDate ( )
testToFieldDefinitionNoDefault ( )
testToFieldDefinitionWithAdjustmentAndSeconds ( )
testToFieldDefinitionWithAdjustmentNoSeconds ( )
testToFieldValue ( )
testToStorageFieldDefinitionCurrentDate ( )
testToStorageFieldDefinitionNoDefault ( )
testToStorageFieldDefinitionWithAdjustment ( )
testToStorageValue ( )

Méthodes protégées

Méthode Description
setUp ( )

Private Methods

Méthode 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 méthode

protected setUp ( )

testGenerateDateIntervalXML() public méthode

testGetDateIntervalFromXML() public méthode

testToFieldDefinitionCurrentDate() public méthode

testToFieldDefinitionNoDefault() public méthode

testToFieldDefinitionWithAdjustmentAndSeconds() public méthode

testToFieldDefinitionWithAdjustmentNoSeconds() public méthode

testToFieldValue() public méthode

public testToFieldValue ( )

testToStorageFieldDefinitionCurrentDate() public méthode

testToStorageFieldDefinitionNoDefault() public méthode

testToStorageFieldDefinitionWithAdjustment() public méthode

testToStorageValue() public méthode

public testToStorageValue ( )

Property Details

$converter protected_oe property

protected DateAndTimeConverter,eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter $converter
Résultat eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\DateAndTimeConverter

$date protected_oe property

protected DateTime $date
Résultat DateTime