mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
24 lines
481 B
PHP
24 lines
481 B
PHP
|
<?php
|
||
|
/**
|
||
|
* @package sapphire
|
||
|
* @subpackage tests
|
||
|
*/
|
||
|
class DateFieldViewJQueryTest extends SapphireTest {
|
||
|
|
||
|
function testConvert() {
|
||
|
$this->assertEquals(
|
||
|
'M d, yy',
|
||
|
DateField_View_JQuery::convert_iso_to_jquery_format('MMM d, yyyy')
|
||
|
);
|
||
|
|
||
|
$this->assertEquals(
|
||
|
'd/mm/yy',
|
||
|
DateField_View_JQuery::convert_iso_to_jquery_format('d/MM/yyyy')
|
||
|
);
|
||
|
|
||
|
$this->assertEquals(
|
||
|
'dd.mm.yy',
|
||
|
DateField_View_JQuery::convert_iso_to_jquery_format('dd.MM.yyyy')
|
||
|
);
|
||
|
}
|
||
|
}
|