Skip to content
Snippets Groups Projects
Commit 4452eea7 authored by Maksym Savich's avatar Maksym Savich
Browse files

MAGETWO-39119: Wrong redirect after adding to compare, wishlist or cart from private content blocks

parent bf7c6eab
Branches
No related merge requests found
......@@ -14,8 +14,6 @@ class DataTest extends \PHPUnit_Framework_TestCase
protected function setUp()
{
$_SERVER['HTTP_HOST'] = 'example.com';
$_SERVER['REQUEST_URI'] = '/fancy_uri';
$this->_helper = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(
'Magento\Framework\Url\Helper\Data'
);
......@@ -23,12 +21,12 @@ class DataTest extends \PHPUnit_Framework_TestCase
public function testGetCurrentBase64Url()
{
$this->assertEquals('aHR0cDovL2xvY2FsaG9zdDo4MQ,,', $this->_helper->getCurrentBase64Url());
$this->assertEquals('aHR0cDovL2xvY2FsaG9zdDo4MS8,', $this->_helper->getCurrentBase64Url());
}
public function testGetEncodedUrl()
{
$this->assertEquals('aHR0cDovL2xvY2FsaG9zdDo4MQ,,', $this->_helper->getEncodedUrl());
$this->assertEquals('aHR0cDovL2xvY2FsaG9zdDo4MS8,', $this->_helper->getEncodedUrl());
$this->assertEquals('aHR0cDovL2V4YW1wbGUuY29tLw,,', $this->_helper->getEncodedUrl('http://example.com/'));
}
}
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