ltsecurityinc安防产品在线商城代码
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Amasty Team
|
||||
* @copyright Copyright (c) Amasty (https://www.amasty.com)
|
||||
* @package GeoIP Data for Magento 2 (System)
|
||||
*/
|
||||
|
||||
namespace Amasty\Geoip\Test\Unit\Traits;
|
||||
|
||||
/**
|
||||
* Create Object Manager instance for test purposes.
|
||||
*
|
||||
* @codingStandardsIgnoreFile
|
||||
*/
|
||||
trait ObjectManagerTrait
|
||||
{
|
||||
/**
|
||||
* @var \Magento\Framework\TestFramework\Unit\Helper\ObjectManager
|
||||
*/
|
||||
private $objectManager;
|
||||
|
||||
/**
|
||||
* @return \Magento\Framework\TestFramework\Unit\Helper\ObjectManager
|
||||
*/
|
||||
private function getObjectManager()
|
||||
{
|
||||
if (!$this->objectManager) {
|
||||
$this->objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
|
||||
}
|
||||
|
||||
return $this->objectManager;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user