本文整理汇总了PHP中Magento\Framework\View\DesignInterface类的典型用法代码示例。如果您正苦于以下问题:PHP DesignInterface类的具体用法?PHP DesignInterface怎么用?PHP DesignInterface使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了DesignInterface类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* @param ConfigInterface $configInterface
* @param DesignInterface $designInterface
* @param Context $context
*/
public function __construct(ConfigInterface $configInterface, DesignInterface $designInterface, Context $context)
{
parent::__construct($context);
$this->viewConfig = $configInterface;
$this->currentTheme = $designInterface->getDesignTheme();
$this->initConfig();
}
开发者ID:CompassPointMedia,项目名称:magento2,代码行数:12,代码来源:Media.php
示例2: __construct
/**
* @param \Magento\Framework\View\DesignInterface $design
* @param \Magento\Framework\View\Asset\GroupedCollection $assets
* @param \Magento\Framework\View\Asset\Repository $assetRepo
* @param \Psr\Log\LoggerInterface $logger
*/
public function __construct(\Magento\Framework\View\DesignInterface $design, \Magento\Framework\View\Asset\GroupedCollection $assets, \Magento\Framework\View\Asset\Repository $assetRepo, \Psr\Log\LoggerInterface $logger)
{
$this->currentTheme = $design->getDesignTheme();
$this->pageAssets = $assets;
$this->assetRepo = $assetRepo;
$this->logger = $logger;
}
开发者ID:tingyeeh,项目名称:magento2,代码行数:13,代码来源:ApplyThemeCustomizationObserver.php
示例3: setUp
/**
* Initialize dependencies
*/
protected function setUp()
{
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
$objectManager->get('Magento\\Framework\\App\\State')->setAreaCode(\Magento\Framework\View\DesignInterface::DEFAULT_AREA);
$this->_design = $objectManager->get('Magento\\Framework\\View\\DesignInterface');
$this->_design->setDesignTheme('Vendor/test_child');
$this->_configFactory = $objectManager->create('Magento\\DesignEditor\\Model\\Editor\\Tools\\Controls\\Factory');
}
开发者ID:shabbirvividads,项目名称:magento2,代码行数:11,代码来源:ConfigurationTest.php
示例4: __construct
/**
* @param \Magento\Framework\App\Cache\Frontend\Pool $cacheFrontendPool
* @param \Magento\Framework\View\DesignInterface $design
* @param \Magento\Framework\View\Asset\GroupedCollection $assets
* @param \Magento\Framework\App\Config\ReinitableConfigInterface $config
* @param \Magento\Framework\View\Asset\Repository $assetRepo
* @param Theme\Registration $registration
* @param \Magento\Framework\Logger $logger
*/
public function __construct(\Magento\Framework\App\Cache\Frontend\Pool $cacheFrontendPool, \Magento\Framework\View\DesignInterface $design, \Magento\Framework\View\Asset\GroupedCollection $assets, \Magento\Framework\App\Config\ReinitableConfigInterface $config, \Magento\Framework\View\Asset\Repository $assetRepo, \Magento\Core\Model\Theme\Registration $registration, \Magento\Framework\Logger $logger)
{
$this->_cacheFrontendPool = $cacheFrontendPool;
$this->_currentTheme = $design->getDesignTheme();
$this->_pageAssets = $assets;
$this->_assetRepo = $assetRepo;
$this->_registration = $registration;
$this->_logger = $logger;
}
开发者ID:aiesh,项目名称:magento2,代码行数:18,代码来源:Observer.php
示例5: __construct
/**
* Initialize dependencies.
*
* @param \Magento\Framework\View\Design\Theme\ImageFactory $themeImageFactory
* @param \Magento\Widget\Model\Resource\Layout\Update\Collection $updateCollection
* @param \Magento\Theme\Model\Config\Customization $themeConfig
* @param \Magento\Framework\Event\ManagerInterface $eventDispatcher
* @param \Magento\Framework\View\DesignInterface $design
* @param \Magento\Framework\View\Asset\GroupedCollection $assets
* @param \Magento\Framework\View\Asset\Repository $assetRepo
* @param Theme\Registration $registration
* @param \Psr\Log\LoggerInterface $logger
*/
public function __construct(\Magento\Framework\View\Design\Theme\ImageFactory $themeImageFactory, \Magento\Widget\Model\Resource\Layout\Update\Collection $updateCollection, \Magento\Theme\Model\Config\Customization $themeConfig, \Magento\Framework\Event\ManagerInterface $eventDispatcher, \Magento\Framework\View\DesignInterface $design, \Magento\Framework\View\Asset\GroupedCollection $assets, \Magento\Framework\View\Asset\Repository $assetRepo, \Magento\Theme\Model\Theme\Registration $registration, \Psr\Log\LoggerInterface $logger)
{
$this->themeImageFactory = $themeImageFactory;
$this->updateCollection = $updateCollection;
$this->themeConfig = $themeConfig;
$this->eventDispatcher = $eventDispatcher;
$this->currentTheme = $design->getDesignTheme();
$this->pageAssets = $assets;
$this->assetRepo = $assetRepo;
$this->registration = $registration;
$this->logger = $logger;
}
开发者ID:shabbirvividads,项目名称:magento2,代码行数:25,代码来源:Observer.php
示例6: setUp
public function setUp()
{
$objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
$this->viewConfigMock = $this->getMock('\\Magento\\Framework\\View\\Config', ['getMediaAttributes', 'getViewConfig'], [], '', false);
$this->viewConfigMock->expects($this->atLeastOnce())->method('getViewConfig')->willReturn($this->viewConfigMock);
$this->themeCustomization = $this->getMock('Magento\\Framework\\View\\Design\\Theme\\Customization', [], [], '', false);
$themeMock = $this->getMock('Magento\\Theme\\Model\\Theme', ['__wakeup', 'getCustomization'], [], '', false);
$themeMock->expects($this->any())->method('getCustomization')->will($this->returnValue($this->themeCustomization));
$this->currentThemeMock = $this->getMock('Magento\\Framework\\View\\DesignInterface');
$this->currentThemeMock->expects($this->any())->method('getDesignTheme')->will($this->returnValue($themeMock));
$this->mediaHelperObject = $objectManager->getObject('\\Magento\\ProductVideo\\Helper\\Media', ['configInterface' => $this->viewConfigMock, 'designInterface' => $this->currentThemeMock]);
}
开发者ID:whoople,项目名称:magento2-testing,代码行数:12,代码来源:MediaTest.php
示例7: setUp
/**
* Initialize dependencies
*/
protected function setUp()
{
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
$this->_design = $objectManager->get('Magento\\Framework\\View\\DesignInterface');
$objectManager->get('Magento\\Framework\\App\\State')->setAreaCode(\Magento\Framework\View\DesignInterface::DEFAULT_AREA);
$this->_design->setDesignTheme('Vendor/test');
/** @var \Magento\Framework\View\Asset\Repository $assetRepo */
$assetRepo = $objectManager->get('Magento\\Framework\\View\\Asset\\Repository');
$quickStylesPath = $assetRepo->createAsset('Magento_DesignEditor::controls/quick_styles.xml')->getSourceFile();
$this->assertFileExists($quickStylesPath);
$this->_model = $objectManager->create('Magento\\DesignEditor\\Model\\Config\\Control\\QuickStyles', ['configFiles' => [file_get_contents($quickStylesPath)]]);
}
开发者ID:shabbirvividads,项目名称:magento2,代码行数:15,代码来源:QuickStylesTest.php
示例8: setUp
/**
* Initialize dependencies
*/
protected function setUp()
{
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
/** @var \Magento\Framework\App\Filesystem\DirectoryList $directoryList */
$directoryList = $objectManager->get('Magento\\Framework\\App\\Filesystem\\DirectoryList');
$path = str_replace($directoryList->getRoot(), '', str_replace('\\', '/', __DIR__) . '/../_files/design');
$directoryList->addDirectory(\Magento\Framework\App\Filesystem::THEMES_DIR, array('path' => ltrim($path, '/')));
$this->_design = $objectManager->get('Magento\\Framework\\View\\DesignInterface');
$objectManager->get('Magento\\Framework\\App\\State')->setAreaCode(\Magento\Framework\View\DesignInterface::DEFAULT_AREA);
$this->_design->setDesignTheme('vendor_test');
/** @var \Magento\Framework\View\Asset\Repository $assetRepo */
$assetRepo = $objectManager->get('Magento\\Framework\\View\\Asset\\Repository');
$quickStylesPath = $assetRepo->createAsset('Magento_DesignEditor::controls/quick_styles.xml')->getSourceFile();
$this->assertFileExists($quickStylesPath);
$this->_model = $objectManager->create('Magento\\DesignEditor\\Model\\Config\\Control\\QuickStyles', array('configFiles' => array(file_get_contents($quickStylesPath))));
}
开发者ID:aiesh,项目名称:magento2,代码行数:19,代码来源:QuickStylesTest.php
示例9: testGetConfig
public function testGetConfig()
{
$this->baseDir->expects($this->any())->method('getRelativePath')->will($this->returnCallback(function ($path) {
return 'relative/' . $path;
}));
$this->baseDir->expects($this->any())->method('readFile')->will($this->returnCallback(function ($file) {
return $file . ' content';
}));
$fileOne = $this->getMock('\\Magento\\Framework\\View\\File', [], [], '', false);
$fileOne->expects($this->once())->method('getFilename')->will($this->returnValue('file_one.js'));
$fileOne->expects($this->once())->method('getModule')->will($this->returnValue('Module_One'));
$fileTwo = $this->getMock('\\Magento\\Framework\\View\\File', [], [], '', false);
$fileTwo->expects($this->once())->method('getFilename')->will($this->returnValue('file_two.js'));
$theme = $this->getMockForAbstractClass('\\Magento\\Framework\\View\\Design\\ThemeInterface');
$this->design->expects($this->once())->method('getDesignTheme')->will($this->returnValue($theme));
$this->fileSource->expects($this->once())->method('getFiles')->with($theme, Config::CONFIG_FILE_NAME)->will($this->returnValue([$fileOne, $fileTwo]));
$expected = <<<expected
(function(require){
require.config({"baseUrl":""});
(function() {
relative/file_one.js content
require.config(config);
})();
(function() {
relative/file_two.js content
require.config(config);
})();
})(require);
expected;
$actual = $this->object->getConfig();
$this->assertStringMatchesFormat($expected, $actual);
}
开发者ID:vasiljok,项目名称:magento2,代码行数:35,代码来源:ConfigTest.php
示例10: testBeforeSave
/**
* @test
* @return void
* @covers \Magento\Theme\Model\Design\Backend\Exceptions::beforeSave
* @covers \Magento\Theme\Model\Design\Backend\Exceptions::_composeRegexp
* @covers \Magento\Theme\Model\Design\Backend\Exceptions::_isRegexp
* @covers \Magento\Theme\Model\Design\Backend\Exceptions::__construct
*/
public function testBeforeSave()
{
$value = ['__empty' => '', 'test' => ['search' => '1qwe', 'value' => '#val#', 'regexp' => '[a-zA-Z0-9]*']];
$this->designMock->expects($this->once())->method('setDesignTheme')->with('#val#', Area::AREA_FRONTEND);
$this->model->setValue($value);
$this->model->beforeSave();
}
开发者ID:pradeep-wagento,项目名称:magento2,代码行数:15,代码来源:ExceptionsTest.php
示例11: get
/**
* {@inheritdoc}
*/
public function get($filename, $scope)
{
switch ($scope) {
case 'global':
$iterator = $this->moduleReader->getConfigurationFiles($filename)->toArray();
$themeConfigFile = $this->currentTheme->getCustomization()->getCustomViewConfigPath();
if ($themeConfigFile && $this->rootDirectory->isExist($this->rootDirectory->getRelativePath($themeConfigFile))) {
$iterator[$this->rootDirectory->getRelativePath($themeConfigFile)] = $this->rootDirectory->readFile($this->rootDirectory->getRelativePath($themeConfigFile));
} else {
$designPath = $this->resolver->resolve(RulePool::TYPE_FILE, 'etc/view.xml', $this->area, $this->currentTheme);
if (file_exists($designPath)) {
try {
$designDom = new \DOMDocument();
$designDom->load($designPath);
$iterator[$designPath] = $designDom->saveXML();
} catch (\Exception $e) {
throw new \Magento\Framework\Exception\LocalizedException(new \Magento\Framework\Phrase('Could not read config file'));
}
}
}
break;
default:
$iterator = $this->iteratorFactory->create([]);
break;
}
return $iterator;
}
开发者ID:Doability,项目名称:magento2dev,代码行数:30,代码来源:FileResolver.php
示例12: testGetConfig
public function testGetConfig()
{
$this->fileReader->expects($this->any())->method('readAll')->will($this->returnCallback(function ($file) {
return $file . ' content';
}));
$fileOne = $this->getMock('\\Magento\\Framework\\View\\File', [], [], '', false);
$fileOne->expects($this->once())->method('getFilename')->will($this->returnValue('some/full/relative/path/file_one.js'));
$fileOne->expects($this->once())->method('getName')->will($this->returnValue('file_one.js'));
$fileOne->expects($this->once())->method('getModule')->will($this->returnValue('Module_One'));
$fileTwo = $this->getMock('\\Magento\\Framework\\View\\File', [], [], '', false);
$fileTwo->expects($this->once())->method('getFilename')->will($this->returnValue('some/full/relative/path/file_two.js'));
$fileTwo->expects($this->once())->method('getName')->will($this->returnValue('file_two.js'));
$theme = $this->getMockForAbstractClass('\\Magento\\Framework\\View\\Design\\ThemeInterface');
$this->design->expects($this->once())->method('getDesignTheme')->will($this->returnValue($theme));
$this->fileSource->expects($this->once())->method('getFiles')->with($theme, Config::CONFIG_FILE_NAME)->will($this->returnValue([$fileOne, $fileTwo]));
$this->minificationMock->expects($this->atLeastOnce())->method('isEnabled')->with('js')->willReturn(true);
$expected = <<<expected
(function(require){
(function() {
file_one.js content
require.config(config);
})();
(function() {
file_two.js content
require.config(config);
})();
})(require);
expected;
$this->minifyAdapterMock->expects($this->once())->method('minify')->with($expected)->willReturnArgument(0);
$actual = $this->object->getConfig();
$this->assertEquals($actual, $expected);
}
开发者ID:VoblaSmile,项目名称:php56-magento2-data,代码行数:35,代码来源:ConfigTest.php
示例13: testGetCacheKeyInfo
public function testGetCacheKeyInfo()
{
$store = $this->getMockBuilder('\\Magento\\Store\\Model\\Store')->disableOriginalConstructor()->setMethods(['getId'])->getMock();
$store->expects($this->once())->method('getId')->willReturn(1);
$this->storeManager->expects($this->once())->method('getStore')->willReturn($store);
$theme = $this->getMock('\\Magento\\Framework\\View\\Design\\ThemeInterface');
$theme->expects($this->once())->method('getId')->willReturn('blank');
$this->design->expects($this->once())->method('getDesignTheme')->willReturn($theme);
$this->httpContext->expects($this->once())->method('getValue')->willReturn('context_group');
$this->productsList->setData('conditions', 'some_serialized_conditions');
$this->request->expects($this->once())->method('getParam')->with('np')->willReturn(1);
$cacheKey = ['CATALOG_PRODUCTS_LIST_WIDGET', 1, 'blank', 'context_group', 1, 5, 'some_serialized_conditions'];
$this->assertEquals($cacheKey, $this->productsList->getCacheKeyInfo());
}
开发者ID:nja78,项目名称:magento2,代码行数:14,代码来源:ProductsListTest.php
示例14: testGetCacheKeyInfo
public function testGetCacheKeyInfo()
{
$store = $this->getMock('Magento\\Store\\Model\\Store', [], [], '', false);
$store->expects($this->atLeastOnce())->method('getId')->willReturn(55);
$store->expects($this->atLeastOnce())->method('getRootCategoryId')->willReturn(60);
$this->storeManager->expects($this->atLeastOnce())->method('getStore')->willReturn($store);
$theme = $this->getMock('\\Magento\\Framework\\View\\Design\\ThemeInterface');
$theme->expects($this->atLeastOnce())->method('getId')->willReturn(65);
$this->design->expects($this->atLeastOnce())->method('getDesignTheme')->willReturn($theme);
$this->httpContext->expects($this->atLeastOnce())->method('getValue')->with(\Magento\Customer\Model\Context::CONTEXT_GROUP)->willReturn(70);
$this->block->setTemplate('block_template');
$this->block->setNameInLayout('block_name');
$expectedResult = ['CATALOG_NAVIGATION', 55, 65, 70, 'template' => 'block_template', 'name' => 'block_name', 60, 'category_path' => 60, 'short_cache_id' => 'c3de6d1160d1e7730b04d6cad409a2b4'];
$this->assertEquals($expectedResult, $this->block->getCacheKeyInfo());
}
开发者ID:pradeep-wagento,项目名称:magento2,代码行数:15,代码来源:NavigationTest.php
示例15: _renderPage
/**
* Renders CMS page
*
* @param Action $action
* @param int $pageId
* @param bool $renderLayout
* @return bool
*/
protected function _renderPage(Action $action, $pageId = null, $renderLayout = true)
{
if (!is_null($pageId) && $pageId !== $this->_page->getId()) {
$delimiterPosition = strrpos($pageId, '|');
if ($delimiterPosition) {
$pageId = substr($pageId, 0, $delimiterPosition);
}
$this->_page->setStoreId($this->_storeManager->getStore()->getId());
if (!$this->_page->load($pageId)) {
return false;
}
}
if (!$this->_page->getId()) {
return false;
}
$inRange = $this->_localeDate->isScopeDateInInterval(null, $this->_page->getCustomThemeFrom(), $this->_page->getCustomThemeTo());
if ($this->_page->getCustomTheme()) {
if ($inRange) {
$this->_design->setDesignTheme($this->_page->getCustomTheme());
}
}
$this->_view->getLayout()->getUpdate()->addHandle('default')->addHandle('cms_page_view');
$this->_view->addPageLayoutHandles(array('id' => $this->_page->getIdentifier()));
$this->_view->addActionLayoutHandles();
if ($this->_page->getRootTemplate()) {
if ($this->_page->getCustomRootTemplate() && $this->_page->getCustomRootTemplate() != 'empty' && $inRange) {
$handle = $this->_page->getCustomRootTemplate();
} else {
$handle = $this->_page->getRootTemplate();
}
$this->_pageLayout->applyHandle($handle);
}
$this->_eventManager->dispatch('cms_page_render', array('page' => $this->_page, 'controller_action' => $action));
$this->_view->loadLayoutUpdates();
if ($this->_page->getCustomLayoutUpdateXml() && $inRange) {
$layoutUpdate = $this->_page->getCustomLayoutUpdateXml();
} else {
$layoutUpdate = $this->_page->getLayoutUpdateXml();
}
if (!empty($layoutUpdate)) {
$this->_view->getLayout()->getUpdate()->addUpdate($layoutUpdate);
}
$this->_view->generateLayoutXml()->generateLayoutBlocks();
$contentHeadingBlock = $this->_view->getLayout()->getBlock('page_content_heading');
if ($contentHeadingBlock) {
$contentHeading = $this->_escaper->escapeHtml($this->_page->getContentHeading());
$contentHeadingBlock->setContentHeading($contentHeading);
}
if ($this->_page->getRootTemplate()) {
$this->_pageLayout->applyTemplate($this->_page->getRootTemplate());
}
/* @TODO: Move catalog and checkout storage types to appropriate modules */
$messageBlock = $this->_view->getLayout()->getMessagesBlock();
$messageBlock->addStorageType($this->messageManager->getDefaultGroup());
$messageBlock->addMessages($this->messageManager->getMessages(true));
if ($renderLayout) {
$this->_view->renderLayout();
}
return true;
}
开发者ID:Atlis,项目名称:docker-magento2,代码行数:68,代码来源:Page.php
示例16: testStop
public function testStop()
{
// Test data
$initArea = 'initial area';
$initTheme = 'initial design theme';
$initLocale = 'initial locale code';
$initialStore = 1;
$initTranslateInline = false;
$this->inlineTranslationMock->expects($this->once())->method('isEnabled')->willReturn($initTranslateInline);
$this->viewDesignMock->expects($this->once())->method('getArea')->willReturn($initArea);
$this->viewDesignMock->expects($this->once())->method('getDesignTheme')->willReturn($initTheme);
$this->storeManagerMock->expects($this->any())->method('getStore')->willReturn($this->storeMock);
$this->storeMock->expects($this->once())->method('getStoreId')->willReturn($initialStore);
$this->localeResolverMock->expects($this->once())->method('getLocale')->willReturn($initLocale);
$this->model->storeCurrentEnvironmentInfo();
// Expectations
$this->inlineTranslationMock->expects($this->once())->method('resume')->with($initTranslateInline);
$this->viewDesignMock->expects($this->once())->method('setDesignTheme')->with($initTheme, $initArea);
$this->storeManagerMock->expects($this->once())->method('setCurrentStore')->with($initialStore);
$this->localeResolverMock->expects($this->once())->method('setLocale')->with($initLocale);
$this->translateMock->expects($this->once())->method('setLocale')->with($initLocale);
$this->translateMock->expects($this->once())->method('loadData')->with($initArea);
// Test
$this->model->stopEnvironmentEmulation();
}
开发者ID:tingyeeh,项目名称:magento2,代码行数:25,代码来源:EmulationTest.php
示例17: getStaticViewFileContext
/**
* Get current context for static view files
*
* @return \Magento\Framework\View\Asset\ContextInterface
*/
public function getStaticViewFileContext()
{
$params = array();
$this->updateDesignParams($params);
$themePath = $this->design->getThemePath($params['themeModel']);
return $this->getFallbackContext(UrlInterface::URL_TYPE_STATIC, null, $params['area'], $themePath, $params['locale']);
}
开发者ID:pavelnovitsky,项目名称:magento2,代码行数:12,代码来源:Repository.php
示例18: collectFiles
/**
* Collect files
*
* @param string|null $searchPattern
* @return array
* @throws \Exception
*/
public function collectFiles($searchPattern = null)
{
$result = [];
if ($searchPattern === null) {
$searchPattern = $this->searchPattern;
}
if ($searchPattern === null) {
throw new \Exception('Search pattern cannot be empty.');
}
$files = $this->collectorAggregated->getFiles($this->design->getDesignTheme(), $searchPattern);
$fileReader = $this->filesystem->getDirectoryRead(DirectoryList::ROOT);
foreach ($files as $file) {
$filePath = $fileReader->getRelativePath($file->getFilename());
$result[sprintf('%x', crc32($filePath))] = $fileReader->readFile($filePath);
}
return $result;
}
开发者ID:kidaa30,项目名称:magento2-platformsh,代码行数:24,代码来源:AggregatedFileCollector.php
示例19: get
/**
* Retrieve instance of a theme currently used in an area
*
* @return \Magento\Framework\View\Design\ThemeInterface
*/
public function get()
{
$area = $this->appState->getAreaCode();
if ($this->design->getDesignTheme()->getArea() == $area || $this->design->getArea() == $area) {
return $this->design->getDesignTheme();
}
/** @var \Magento\Theme\Model\ResourceModel\Theme\Collection $themeCollection */
$themeCollection = $this->themeFactory->create();
$themeIdentifier = $this->design->getConfigurationDesignTheme($area);
if (is_numeric($themeIdentifier)) {
$result = $themeCollection->getItemById($themeIdentifier);
} else {
$themeFullPath = $area . \Magento\Framework\View\Design\ThemeInterface::PATH_SEPARATOR . $themeIdentifier;
$result = $themeCollection->getThemeByFullPath($themeFullPath);
}
return $result;
}
开发者ID:kidaa30,项目名称:magento2-platformsh,代码行数:22,代码来源:Resolver.php
示例20: mockDesign
private function mockDesign()
{
$params = array('area' => 'area', 'themeModel' => $this->theme, 'locale' => 'locale');
$this->design->expects($this->atLeastOnce())->method('getDesignParams')->will($this->returnValue($params));
$this->design->expects($this->any())->method('getConfigurationDesignTheme')->with('area')->will($this->returnValue($this->theme));
$this->design->expects($this->any())->method('getThemePath')->with($this->theme)->will($this->returnValue('theme'));
$this->themeList->expects($this->any())->method('getThemeByFullPath')->will($this->returnValue($this->theme));
}
开发者ID:buskamuza,项目名称:magento2-skeleton,代码行数:8,代码来源:RepositoryTest.php
注:本文中的Magento\Framework\View\DesignInterface类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论