public function testMediaTypeEmpty() { $expectedData = 'default_media_type'; $this->scopeConfig->expects($this->once())->method('getValue')->with('design/head/default_media_type', 'store') ->will($this->returnValue('default_media_type')); $this->assertEquals($expectedData, $this->model->getMediaType()); }
/** * {@inheritdoc} */ public function getMediaType() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getMediaType'); if (!$pluginInfo) { return parent::getMediaType(); } else { return $this->___callPlugins('getMediaType', func_get_args(), $pluginInfo); } }