Skip to content

Commit d6854d2

Browse files
author
Karpenko, Oleksandr
committed
Merge branch 'pr-develop' of https://github.com/magento-frontend/magento2ce into pr-develop
2 parents 9b746fa + 8563c2b commit d6854d2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertHttpUsedOnFrontend.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ public function processAssert(BrowserInterface $browser, Customer $customer)
6868
*/
6969
protected function assertUsedProtocol($expectedProtocol)
7070
{
71+
if (substr($expectedProtocol, -3) !== "://") {
72+
$expectedProtocol .= '://';
73+
}
74+
7175
\PHPUnit_Framework_Assert::assertStringStartsWith(
7276
$expectedProtocol,
7377
$this->browser->getUrl(),

dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertHttpsUsedOnBackend.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ public function processAssert(BrowserInterface $browser, Dashboard $adminDashboa
6262
*/
6363
protected function assertUsedProtocol($expectedProtocol)
6464
{
65+
if (substr($expectedProtocol, -3) !== "://") {
66+
$expectedProtocol .= '://';
67+
}
68+
6569
\PHPUnit_Framework_Assert::assertStringStartsWith(
6670
$expectedProtocol,
6771
$this->browser->getUrl(),

0 commit comments

Comments
 (0)