/**
  * {@inheritdoc}
  */
 public function getMediaCallback()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getMediaCallback');
     if (!$pluginInfo) {
         return parent::getMediaCallback();
     } else {
         return $this->___callPlugins('getMediaCallback', func_get_args(), $pluginInfo);
     }
 }
 public function testGetMediaCallback()
 {
     $this->urlBuilder->expects($this->once())->method('getBaseUrl')->willReturn('http://magento.com/');
     $this->assertContains(Configurable::MEDIA_CALLBACK_ACTION, $this->configurable->getMediaCallback());
 }
 public function testGetMediaCallback()
 {
     $url = 'http://localhost/' . Configurable::MEDIA_CALLBACK_ACTION;
     $this->urlBuilder->expects($this->once())->method('getUrl')->with(Configurable::MEDIA_CALLBACK_ACTION)->willReturn($url);
     $this->assertEquals($url, $this->configurable->getMediaCallback());
 }