16 private $objectManager;
30 $attribute = $this->objectManager->get(\
Magento\Eav\Model\Config::class)->getAttribute(
34 $this->assertTrue(
$attribute->isScopeGlobal());
42 public function testPriceAttributeHasScopeWebsite()
45 $config = $this->objectManager->get(
46 ReinitableConfigInterface::class
54 $eventManager = $this->objectManager->get(\
Magento\Framework\Event\ManagerInterface::class);
55 $eventManager->dispatch(
56 "admin_system_config_changed_section_catalog",
57 [
'website' => 0,
'store' => 0]
60 $attribute = $this->objectManager->get(\
Magento\Eav\Model\Config::class)->getAttribute(
64 $this->assertTrue(
$attribute->isScopeWebsite());
const PRICE_SCOPE_WEBSITE
const XML_PATH_PRICE_SCOPE
testPriceAttributeHasScopeGlobal()
static getObjectManager()