Skip to content
Snippets Groups Projects
Commit 8563c2b5 authored by Dmytro Vilchynskyi's avatar Dmytro Vilchynskyi
Browse files

MAGETWO-60185: Remove distinction in http/https for requirejs-config.js

- Changes after CR.
parent c84ef0fc
Branches
No related merge requests found
......@@ -68,6 +68,10 @@ class AssertHttpUsedOnFrontend extends AbstractConstraint
*/
protected function assertUsedProtocol($expectedProtocol)
{
if (substr($expectedProtocol, -3) !== "://") {
$expectedProtocol .= '://';
}
\PHPUnit_Framework_Assert::assertStringStartsWith(
$expectedProtocol,
$this->browser->getUrl(),
......
......@@ -62,6 +62,10 @@ class AssertHttpsUsedOnBackend extends AbstractConstraint
*/
protected function assertUsedProtocol($expectedProtocol)
{
if (substr($expectedProtocol, -3) !== "://") {
$expectedProtocol .= '://';
}
\PHPUnit_Framework_Assert::assertStringStartsWith(
$expectedProtocol,
$this->browser->getUrl(),
......
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