ltsecurityinc安防产品在线商城代码
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
namespace Magento\Framework\Url\Helper;
|
||||
|
||||
class DataTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @var \Magento\Framework\Url\Helper\Data
|
||||
*/
|
||||
protected $_helper = null;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->_helper = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(
|
||||
\Magento\Framework\Url\Helper\Data::class
|
||||
);
|
||||
}
|
||||
|
||||
public function testGetCurrentBase64Url()
|
||||
{
|
||||
$this->assertEquals('aHR0cDovL2xvY2FsaG9zdDo4MS8~', $this->_helper->getCurrentBase64Url());
|
||||
}
|
||||
|
||||
public function testGetEncodedUrl()
|
||||
{
|
||||
$this->assertEquals('aHR0cDovL2xvY2FsaG9zdDo4MS8~', $this->_helper->getEncodedUrl());
|
||||
$this->assertEquals('aHR0cDovL2V4YW1wbGUuY29tLw~~', $this->_helper->getEncodedUrl('http://example.com/'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user