/** * @param Context $context */ public function __construct(Context $context) { $this->translateInline = $context->getTranslateInline(); $this->_moduleManager = $context->getModuleManager(); $this->_logger = $context->getLogger(); $this->_request = $context->getRequest(); $this->_urlBuilder = $context->getUrlBuilder(); $this->_httpHeader = $context->getHttpHeader(); $this->_eventManager = $context->getEventManager(); $this->_remoteAddress = $context->getRemoteAddress(); $this->_cacheConfig = $context->getCacheConfig(); }
/** * @param Context $context */ public function __construct(Context $context) { $this->_moduleManager = $context->getModuleManager(); $this->_logger = $context->getLogger(); $this->_request = $context->getRequest(); $this->_urlBuilder = $context->getUrlBuilder(); $this->_httpHeader = $context->getHttpHeader(); $this->_eventManager = $context->getEventManager(); $this->_remoteAddress = $context->getRemoteAddress(); $this->_cacheConfig = $context->getCacheConfig(); $this->urlEncoder = $context->getUrlEncoder(); $this->urlDecoder = $context->getUrlDecoder(); $this->scopeConfig = $context->getScopeConfig(); }
public function testGetUrlBuilder() { $this->assertInstanceOf('\\Magento\\Framework\\UrlInterface', $this->context->getUrlBuilder()); }