9 use Magento\Integration\Test\Fixture\Integration;
10 use Magento\Integration\Test\Page\Adminhtml\IntegrationIndex;
11 use Magento\Integration\Test\Page\Adminhtml\IntegrationNew;
12 use Magento\Mtf\Constraint\AbstractConstraint;
54 IntegrationIndex $integrationIndex,
55 IntegrationNew $integrationNew,
59 $integrationIndex->open();
60 $integrationIndex->getIntegrationGrid()->searchAndOpen($filter);
61 $actualData = $integrationNew->getIntegrationForm()->getData();
64 \PHPUnit\Framework\Assert::assertEmpty(
66 "Integration tokens was changed incorrectly.\nLog:\n" . implode(
";\n",
$errors)
80 foreach ($this->consumerKeys as $consumerKey) {
81 if ($actualData[$consumerKey] !==
$tokens[$consumerKey]) {
82 $errors[] =
"Field '" . $consumerKey .
"' was changed.";
85 foreach ($this->accessTokens as $accessToken) {
86 if ($actualData[$accessToken] ===
$tokens[$accessToken]) {
87 $errors[] =
"Field '" . $accessToken .
"' was not changed.";
100 return 'Access tokens were reauthorized correctly.';
checkTokens(array $actualData, array $tokens)
processAssert(IntegrationIndex $integrationIndex, IntegrationNew $integrationNew, Integration $integration)