Skip to content

Commit 22be2ab

Browse files
committed
MC-39606: Create automated test for: "Save the product with "Set new as from" attribute"
1 parent d55e465 commit 22be2ab

File tree

1 file changed

+0
-2
lines changed
  • dev/tests/integration/testsuite/Magento/Catalog/Model/Attribute/Backend

1 file changed

+0
-2
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Model/Attribute/Backend/StartdateTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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.');

0 commit comments

Comments
 (0)