Skip to content

Commit 1843e28

Browse files
committed
ACPT-860: Indexation time is calculated incorrectly
- Add unit tests coverage;
1 parent b69d842 commit 1843e28

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/code/Magento/Indexer/Test/Unit/Console/Command/IndexerReindexCommandTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ public function testExecuteAll()
130130
self::STUB_INDEXER_NAME . ' index has been rebuilt successfully in',
131131
$actualValue
132132
);
133+
$this->assertMatchesRegularExpression(
134+
'/' . self::STUB_INDEXER_NAME
135+
. ' index has been rebuilt successfully in (?:(?:([01]?\d|2[0-3]):)?([0-5]?\d):)?([0-5]?\d)/m',
136+
$actualValue
137+
);
133138
}
134139

135140
/**

0 commit comments

Comments
 (0)