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
4545 $ this ->productFactory = $ this ->objectManager ->get (ProductInterfaceFactory::class);
4646 $ this ->startDate = $ this ->objectManager ->get (Startdate::class);
4747 $ 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')));
4948 $ attribute ->setMaxValue (new \DateTime ('-10 days ' ));
5049 $ this ->startDate ->setAttribute ($ attribute );
5150 }
@@ -67,7 +66,6 @@ public function testBeforeSave(): void
6766 public function testValidate (): void
6867 {
6968 $ product = $ this ->productFactory ->create ();
70- //$product->setNewsFromDate(date('d-m-Y'));
7169 $ product ->setNewsFromDate (new \DateTime ());
7270 $ this ->expectException (Exception::class);
7371 $ 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