Example #1
0
 protected function setUp()
 {
     $this->objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
     $rule = $this->objectManager->create('Magento\\CatalogWidget\\Model\\Rule');
     $this->conditionProduct = $this->objectManager->create('Magento\\CatalogWidget\\Model\\Rule\\Condition\\Product');
     $this->conditionProduct->setRule($rule);
 }