14 \
Magento\Catalog\Setup\CategorySetup::class,
15 [
'resourceName' =>
'catalog_setup']
24 'attribute_code' =>
'date_attribute',
25 'entity_type_id' =>
$installer->getEntityTypeId(
'catalog_product'),
28 'backend_type' =>
'datetime',
29 'frontend_input' =>
'date',
30 'frontend_label' =>
'Test Date',
40 ->setTypeId(\
Magento\Catalog\Model\Product\Type::TYPE_SIMPLE)
41 ->setAttributeSetId(
$installer->getAttributeSetId(
'catalog_product',
'Default'))
43 ->setName(
'Simple Product with date attribute')
44 ->setSku(
'simple_product_with_date_attribute')
47 ->setVisibility(\
Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
48 ->setStatus(\
Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
49 ->setStockData([
'use_config_manage_stock' => 1,
'qty' => 5,
'is_in_stock' => 1])
static getObjectManager()