9 use Magento\Integration\Test\Fixture\Integration;
10 use Magento\Integration\Test\Page\Adminhtml\IntegrationIndex;
11 use Magento\Mtf\Constraint\AbstractConstraint;
28 IntegrationIndex $integrationIndexPage,
31 $expectedMessage = sprintf(self::ERROR_DUPLICATE_INTEGRATION_NAME,
$integration->getName());
32 $actualMessage = $integrationIndexPage->getMessagesBlock()->getErrorMessage();
33 \PHPUnit\Framework\Assert::assertEquals(
36 'Wrong error message is displayed.' 37 .
"\nExpected: " . $expectedMessage
38 .
"\nActual: " . $actualMessage
49 return 'Duplicated integration name error message is correct.';
processAssert(IntegrationIndex $integrationIndexPage, Integration $integration)
const ERROR_DUPLICATE_INTEGRATION_NAME