/** * @covers \Magento\Store\Model\Store::getBaseMediaDir */ public function testGetBaseMediaDir() { $expectedResult = 'pub/media'; $this->filesystemMock->expects($this->once())->method('getUri')->with(\Magento\Framework\App\Filesystem\DirectoryList::MEDIA)->willReturn($expectedResult); $this->assertEquals($expectedResult, $this->store->getBaseMediaDir()); }
/** * {@inheritdoc} */ public function getBaseMediaDir() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getBaseMediaDir'); if (!$pluginInfo) { return parent::getBaseMediaDir(); } else { return $this->___callPlugins('getBaseMediaDir', func_get_args(), $pluginInfo); } }