diff --git a/dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertHttpUsedOnFrontend.php b/dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertHttpUsedOnFrontend.php index 00eb776be2e5add04e86a50d555f496b408a64f6..6dae8e5cd7b860976e483baaf4b989595acbdc47 100644 --- a/dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertHttpUsedOnFrontend.php +++ b/dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertHttpUsedOnFrontend.php @@ -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(), diff --git a/dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertHttpsUsedOnBackend.php b/dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertHttpsUsedOnBackend.php index a45b3268aa51bb8fec278a13c127b86981397a22..7609d69c51c253d7be38fe778f5e21084ccc8e8e 100644 --- a/dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertHttpsUsedOnBackend.php +++ b/dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertHttpsUsedOnBackend.php @@ -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(),