public function testAroundGetBaseUrlActive() { $this->config->expects($this->once())->method('getValue')->with(Signature::XML_PATH_STATIC_FILE_SIGNATURE)->will($this->returnValue(1)); $this->deploymentVersion->expects($this->once())->method('getValue')->will($this->returnValue('123')); $url = $this->getMockForAbstractClass('\\Magento\\Framework\\Url\\ScopeInterface'); $actualResult = $this->object->aroundGetBaseUrl($url, $this->closureMock, \Magento\Framework\UrlInterface::URL_TYPE_STATIC); $this->assertEquals('http://127.0.0.1/magento/pub/static/version123/', $actualResult); }