Skip to content
Snippets Groups Projects
Commit ec2f9269 authored by Vitaliy Goncharenko's avatar Vitaliy Goncharenko
Browse files

MAGETWO-61132: Integration test Magento\Directory\Model\ObserverTest fails due...

MAGETWO-61132: Integration test Magento\Directory\Model\ObserverTest fails due to 3rd party service outage
parent d40ab324
Branches
No related merge requests found
......@@ -62,12 +62,12 @@ class ObserverTest extends \PHPUnit_Framework_TestCase
{
//skipping test if service is unavailable
$url = str_replace('{{CURRENCY_FROM}}', 'USD',
\Magento\Directory\Model\Currency\Import\Webservicex::CURRENCY_CONVERTER_URL
\Magento\Directory\Model\Currency\Import\Webservicex::CURRENCY_CONVERTER_URL
);
$url = str_replace('{{CURRENCY_TO}}', 'GBP', $url);
try {
file_get_contents($url);
} catch (\PHPUnit_Framework_Error_Warning $e) {
} catch (\PHPUnit_Framework_Exception $e) {
$this->markTestSkipped('http://www.webservicex.net is unavailable ');
}
......
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