File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed
dev/tests/integration/testsuite/Magento/Catalog/Model/Attribute/Backend Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ protected function setUp(): void
45
45
$ this ->productFactory = $ this ->objectManager ->get (ProductInterfaceFactory::class);
46
46
$ this ->startDate = $ this ->objectManager ->get (Startdate::class);
47
47
$ attribute = $ this ->objectManager ->get (Config::class)->getAttribute (Product::ENTITY , 'news_from_date ' );
48
- //$attribute->setMaxValue(date('Y-m-d H:i:s', strtotime('-10 days')));
49
48
$ attribute ->setMaxValue (new \DateTime ('-10 days ' ));
50
49
$ this ->startDate ->setAttribute ($ attribute );
51
50
}
@@ -67,7 +66,6 @@ public function testBeforeSave(): void
67
66
public function testValidate (): void
68
67
{
69
68
$ product = $ this ->productFactory ->create ();
70
- //$product->setNewsFromDate(date('d-m-Y'));
71
69
$ product ->setNewsFromDate (new \DateTime ());
72
70
$ this ->expectException (Exception::class);
73
71
$ msg = __ ('Make sure the To Date is later than or the same as the From Date. ' );
You can’t perform that action at this time.
0 commit comments