Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 /**
  * @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());
 }