Skip to content
Snippets Groups Projects
Commit 0535b74f authored by okarpenko's avatar okarpenko
Browse files

MAGETWO-35487: HTML minification management

parent 4dbd6044
No related merge requests found
......@@ -78,7 +78,7 @@ class Cc extends \Magento\Payment\Block\Info
public function getCcExpDate()
{
$date = new \DateTime('now', new \DateTimeZone($this->_localeDate->getConfigTimezone()));
$date->setDate($this->getInfo()->getCcExpYear(), $this->getInfo()->getCcExpMonth(), $date->format('d'));
$date->setDate($this->getInfo()->getCcExpYear(),$this->getInfo()->getCcExpMonth(), 1);
return $date;
}
......
......@@ -157,7 +157,7 @@ class CcTest extends \PHPUnit_Framework_TestCase
public function getCcExpDateDataProvider()
{
return [
[3, 2015],
[2, 2015],
[12, 2011],
[01, 2036]
];
......
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