Skip to content
Snippets Groups Projects
Commit 8a898f6d authored by Vladimir Pelipenko's avatar Vladimir Pelipenko
Browse files

Merge remote-tracking branch 'github/develop' into public-pulls

Conflicts:
	dev/tests/integration/testsuite/Magento/Framework/Data/Form/Element/DateTest.php
parents 900c0a21 ce71c378
No related merge requests found
......@@ -48,29 +48,29 @@ class DateTest extends \PHPUnit_Framework_TestCase
*/
public function getValueDataProvider()
{
$currentTime = time();
$testTimestamp = strtotime('2014-05-18 12:08:16');
return [
[
[
'date_format' => \Magento\Framework\Stdlib\DateTime\TimezoneInterface::FORMAT_TYPE_SHORT,
'time_format' => \Magento\Framework\Stdlib\DateTime\TimezoneInterface::FORMAT_TYPE_SHORT,
'value' => $currentTime,
'value' => $testTimestamp,
],
date('n/j/y g:i A', $currentTime),
date('n/j/y g:i A', $testTimestamp),
],
[
[
'time_format' => \Magento\Framework\Stdlib\DateTime\TimezoneInterface::FORMAT_TYPE_SHORT,
'value' => $currentTime,
'value' => $testTimestamp,
],
date('g:i A', $currentTime)
date('g:i A', $testTimestamp)
],
[
[
'date_format' => \Magento\Framework\Stdlib\DateTime\TimezoneInterface::FORMAT_TYPE_SHORT,
'value' => $currentTime,
'value' => $testTimestamp,
],
date('n/j/y', $currentTime)
date('n/j/y', $testTimestamp)
]
];
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment