public function testGetScopeStore() { $objectManagerHelper = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this); $this->_model = $objectManagerHelper->getObject('\\Magento\\Catalog\\Model\\ResourceModel\\Eav\\Attribute', ['context' => $this->contextMock, 'productFlatIndexerProcessor' => $this->_processor, 'indexerEavProcessor' => $this->_eavProcessor, 'resource' => $this->resourceMock, 'data' => ['is_global' => 'some value']]); $this->assertEquals('store', $this->_model->getScope()); }
/** * {@inheritdoc} */ public function getScope() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getScope'); if (!$pluginInfo) { return parent::getScope(); } else { return $this->___callPlugins('getScope', func_get_args(), $pluginInfo); } }