_model = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(
\Magento\Widget\Model\Layout\Update::class
);
}
public function testConstructor()
{
$this->_model = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(
\Magento\Widget\Model\Layout\Update::class
);
$this->assertInstanceOf(
\Magento\Widget\Model\ResourceModel\Layout\Update::class,
$this->_model->getResource()
);
}
/**
* @magentoDbIsolation enabled
*/
public function testCrud()
{
$this->_model->setData(['handle' => 'default', 'xml' => '', 'sort_order' => 123]);
$entityHelper = new \Magento\TestFramework\Entity(
$this->_model,
['handle' => 'custom', 'xml' => '', 'sort_order' => 456]
);
$entityHelper->testCrud();
}
}