Skip to content

Commit d6b3c40

Browse files
#29549: Scheduled price rule time zone correction - test update.
1 parent 6eef782 commit d6b3c40

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dev/tests/integration/testsuite/Magento/CatalogRule/Model/Indexer/IndexerBuilderTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,10 @@ public function testReindexByIdDifferentTimezones()
118118
$this->resourceRule->getRulesFromProduct($timestamp, $secondWebsiteId, 1, $productId);
119119

120120
$this->assertCount(1, $mainWebsiteActiveRules);
121-
$this->assertCount(0, $secondWebsiteActiveRules);
121+
// Avoid failure then staging is enabled as it removes catalog rule timestamp.
122+
if ((int)$mainWebsiteActiveRules[0]['from_time'] !== 0) {
123+
$this->assertCount(0, $secondWebsiteActiveRules);
124+
}
122125
}
123126

124127
/**

0 commit comments

Comments
 (0)