/** * Return site specific information * * @return array */ public function getSiteDetails($storeId = null) { $edition = $this->productMetadata->getEdition(); $url = $this->storeManager->getStore($storeId)->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_LINK); $siteDetails = $this->siteDetailsFactory->create(['ecommerceCart' => 'Magento 2 ' . $edition, 'ecommerceVersion' => $this->productMetadata->getVersion(), 'websiteUrl' => $url, 'environmentScope' => $this->shipperDataHelper->getConfigValue('carriers/shipper/environment_scope', $storeId), 'appVersion' => $this->shipperDataHelper->getConfigValue('carriers/shipper/extension_version')]); return $siteDetails; }
public function testGetEdition() { $productEdition = $this->productMetadata->getEdition(); $this->assertNotEmpty($productEdition, 'Empty product edition'); }