9 use Magento\Reports\Test\Page\Adminhtml\Statistics;
10 use Magento\Mtf\Constraint\AbstractConstraint;
30 $successMessage = $reportStatistics->getMessagesBlock()->getSuccessMessage();
31 \PHPUnit\Framework\Assert::assertEquals(
32 self::LIFETIME_STATISTICS_UPDATED_MESSAGE,
34 'Wrong success message is displayed.' 35 .
"\nExpected: " . self::LIFETIME_STATISTICS_UPDATED_MESSAGE
36 .
"\nActual: " . $successMessage
47 return "Correct message is displayed after refreshing lifetime statistics.";
const LIFETIME_STATISTICS_UPDATED_MESSAGE
processAssert(Statistics $reportStatistics)