init
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
namespace Magento\Framework\HTTP\PhpEnvironment;
|
||||
|
||||
class RemoteAddressTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @var \Magento\Framework\HTTP\PhpEnvironment\RemoteAddress
|
||||
*/
|
||||
protected $_helper;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
|
||||
$this->_helper = $objectManager->get(\Magento\Framework\HTTP\PhpEnvironment\RemoteAddress::class);
|
||||
}
|
||||
|
||||
public function testGetRemoteAddress()
|
||||
{
|
||||
$this->assertFalse($this->_helper->getRemoteAddress());
|
||||
}
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
namespace Magento\Framework\HTTP\PhpEnvironment;
|
||||
|
||||
class ServerAddressTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @var \Magento\Framework\HTTP\PhpEnvironment\ServerAddress
|
||||
*/
|
||||
protected $_helper;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
|
||||
$this->_helper = $objectManager->get(\Magento\Framework\HTTP\PhpEnvironment\ServerAddress::class);
|
||||
}
|
||||
|
||||
public function testGetServerAddress()
|
||||
{
|
||||
$this->assertFalse($this->_helper->getServerAddress());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user