Skip to content

Commit 4452eea

Browse files
author
Maksym Savich
committed
MAGETWO-39119: Wrong redirect after adding to compare, wishlist or cart from private content blocks
1 parent bf7c6ea commit 4452eea

File tree

1 file changed

+2
-4
lines changed
  • dev/tests/integration/testsuite/Magento/Framework/Url/Helper

1 file changed

+2
-4
lines changed

dev/tests/integration/testsuite/Magento/Framework/Url/Helper/DataTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,19 @@ class DataTest extends \PHPUnit_Framework_TestCase
1414

1515
protected function setUp()
1616
{
17-
$_SERVER['HTTP_HOST'] = 'example.com';
18-
$_SERVER['REQUEST_URI'] = '/fancy_uri';
1917
$this->_helper = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(
2018
'Magento\Framework\Url\Helper\Data'
2119
);
2220
}
2321

2422
public function testGetCurrentBase64Url()
2523
{
26-
$this->assertEquals('aHR0cDovL2xvY2FsaG9zdDo4MQ,,', $this->_helper->getCurrentBase64Url());
24+
$this->assertEquals('aHR0cDovL2xvY2FsaG9zdDo4MS8,', $this->_helper->getCurrentBase64Url());
2725
}
2826

2927
public function testGetEncodedUrl()
3028
{
31-
$this->assertEquals('aHR0cDovL2xvY2FsaG9zdDo4MQ,,', $this->_helper->getEncodedUrl());
29+
$this->assertEquals('aHR0cDovL2xvY2FsaG9zdDo4MS8,', $this->_helper->getEncodedUrl());
3230
$this->assertEquals('aHR0cDovL2V4YW1wbGUuY29tLw,,', $this->_helper->getEncodedUrl('http://example.com/'));
3331
}
3432
}

0 commit comments

Comments
 (0)