public function testGetAssetMinificationAdapter() { $contentType = 'content type'; $adapter = 'adapter'; $this->scopeConfigMock->expects($this->once())->method('getValue')->with(sprintf(Config::XML_PATH_MINIFICATION_ADAPTER, $contentType), \Magento\Store\Model\ScopeInterface::SCOPE_STORE)->willReturn($adapter); $this->assertSame($adapter, $this->model->getAssetMinificationAdapter($contentType)); }
/** * @param bool $booleanData * @dataProvider booleanDataProvider * @return void */ public function testIsMergeJsFiles($booleanData) { $this->scopeConfigMock->expects($this->once())->method('isSetFlag')->with(Config::XML_PATH_MERGE_JS_FILES, ScopeInterface::SCOPE_STORE)->willReturn($booleanData); $this->assertSame($booleanData, $this->model->isMergeJsFiles()); }