public function testGetConversionImgSrc() { $conversionId = 123; $label = 'LabEl'; $imgSrc = sprintf('https://www.googleadservices.com/pagead/conversion/%s/?label=%s&guid=ON&script=0', $conversionId, $label); $this->_scopeConfigMock->expects($this->at(0))->method('getValue')->with(\Magento\GoogleAdwords\Helper\Data::XML_PATH_CONVERSION_IMG_SRC, 'default')->will($this->returnValue($imgSrc)); $this->assertEquals($imgSrc, $this->_helper->getConversionImgSrc()); }