예제 #1
0
 /**
  * @covers \Magento\Store\Model\Store::getBaseStaticDir
  */
 public function testGetBaseStaticDir()
 {
     $expectedResult = 'pub/static';
     $this->filesystemMock->expects($this->once())->method('getUri')->with(\Magento\Framework\App\Filesystem\DirectoryList::STATIC_VIEW)->willReturn($expectedResult);
     $this->assertEquals($expectedResult, $this->store->getBaseStaticDir());
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function getBaseStaticDir()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getBaseStaticDir');
     if (!$pluginInfo) {
         return parent::getBaseStaticDir();
     } else {
         return $this->___callPlugins('getBaseStaticDir', func_get_args(), $pluginInfo);
     }
 }