Example #1
0
 public function testContentTypeEmpty()
 {
     $expectedData = 'default_media_type; charset=default_charset';
     $this->scopeConfig->expects($this->at(0))->method('getValue')->with('design/head/default_media_type', 'store')->will($this->returnValue('default_media_type'));
     $this->scopeConfig->expects($this->at(1))->method('getValue')->with('design/head/default_charset', 'store')->will($this->returnValue('default_charset'));
     $this->assertEquals($expectedData, $this->model->getContentType());
 }
 /**
  * {@inheritdoc}
  */
 public function getContentType()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getContentType');
     if (!$pluginInfo) {
         return parent::getContentType();
     } else {
         return $this->___callPlugins('getContentType', func_get_args(), $pluginInfo);
     }
 }