Skip to content
Snippets Groups Projects
Commit e8ec7b10 authored by Igor Melnikov's avatar Igor Melnikov
Browse files

MAGETWO-54652: Replace usages of deprecated escaper functions

Fixing integration tests
parent 292c520e
Branches
No related merge requests found
......@@ -134,7 +134,7 @@ class Button extends Template implements ControlInterface
if ($attributeValue === null || $attributeValue == '') {
continue;
}
$html .= $attributeKey . '="' . $this->escapeHtml($attributeValue) . '" ';
$html .= $attributeKey . '="' . htmlspecialchars($attributeValue, ENT_COMPAT, 'UTF-8', false) . '" ';
}
return $html;
......
......@@ -16,8 +16,8 @@ class PaymentTest extends \Magento\TestFramework\TestCase\AbstractController
$this->dispatch('authorizenet/directpost_payment/response');
// @codingStandardsIgnoreStart
$this->assertContains(
'authorizenet/directpost_payment/redirect/success/0/error_msg/The transaction was'
. ' declined because the response hash validation failed.',
'authorizenet/directpost_payment/redirect/success/0/error_msg/The%20transaction%20was'
. '%20declined%20because%20the%20response%20hash%20validation%20failed.',
// @codingStandardsIgnoreEnd
$this->getResponse()->getBody()
);
......@@ -40,8 +40,8 @@ class PaymentTest extends \Magento\TestFramework\TestCase\AbstractController
$this->dispatch('authorizenet/directpost_payment/backendresponse');
// @codingStandardsIgnoreStart
$this->assertContains(
'authorizenet_directpost_payment/redirect/success/0/error_msg/The transaction was declined'
. ' because the response hash validation failed./controller_action_name/action_name/',
'authorizenet_directpost_payment/redirect/success/0/error_msg/The%20transaction%20was%20declined'
. '%20because%20the%20response%20hash%20validation%20failed./controller_action_name/action_name/',
// @codingStandardsIgnoreEnd
$this->getResponse()->getBody()
);
......
......@@ -37,7 +37,7 @@ class CompareTest extends \PHPUnit_Framework_TestCase
$id1 = $productRepository->get('simple1')->getId();
$id2 = $productRepository->get('simple2')->getId();
$this->assertRegExp(
'#/catalog/product_compare/index/items/(?:' . $id1 . ',' . $id2 . '|' . $id2 . ',' . $id1. ')/#',
'#/catalog/product_compare/index/items/(?:' . $id1 . '%2C' . $id2 . '|' . $id2 . '%2C' . $id1. ')/#',
$this->_helper->getListUrl()
);
}
......
......@@ -272,8 +272,8 @@ class AccountTest extends \Magento\TestFramework\TestCase\AbstractController
$this->assertSessionMessages(
$this->equalTo([
'You must confirm your account. Please check your email for the confirmation link or '
. '<a href="http://localhost/index.php/customer/account/confirmation/email/'
. $email . '/">click here</a> for a new link.'
. '<a href="http://localhost/index.php/customer/account/confirmation/email/'
. rawurlencode($email) . '/">click here</a> for a new link.'
]),
MessageInterface::TYPE_SUCCESS
);
......
......@@ -23,7 +23,7 @@ class ReportsTest extends \Magento\TestFramework\TestCase\AbstractBackendControl
{
$this->dispatch('backend/paypal/paypal_reports/fetch');
$this->assertSessionMessages(
$this->equalTo(['We can\'t fetch reports from &quot;login@127.0.0.1.&quot;']),
$this->equalTo(['We can&#039;t fetch reports from &quot;login@127.0.0.1.&quot;']),
\Magento\Framework\Message\MessageInterface::TYPE_ERROR
);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment