6 declare(strict_types=1);
23 )->setAvailableSortBy(
31 )->setAvailableSortBy(
40 ->setAttributeSetId(4)
41 ->setName(
'Simple Product OOS')
42 ->setSku(
'simple_oos')
43 ->setTaxClassId(
'none')
44 ->setDescription(
'description')
45 ->setShortDescription(
'short description')
46 ->setOptionsContainer(
'container1')
47 ->setMsrpDisplayActualPriceType(\
Magento\Msrp\Model\Product\Attribute\Source\Type::TYPE_IN_CART)
50 ->setMetaTitle(
'meta title')
51 ->setMetaKeyword(
'meta keyword')
52 ->setMetaDescription(
'meta description')
53 ->setVisibility(\
Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
54 ->setStatus(\
Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
57 ->setCategoryIds([300])
58 ->setStockData([
'use_config_manage_stock' => 1,
'qty' => 0,
'is_qty_decimal' => 0,
'is_in_stock' => 0])
59 ->setSpecialPrice(
'5.99')
66 ->setAttributeSetId(4)
67 ->setName(
'Simple Product Not Visible')
68 ->setSku(
'simple2_not_visible')
69 ->setTaxClassId(
'none')
70 ->setDescription(
'description')
71 ->setShortDescription(
'short description')
72 ->setOptionsContainer(
'container1')
73 ->setMsrpDisplayActualPriceType(\
Magento\Msrp\Model\Product\Attribute\Source\Type::TYPE_ON_GESTURE)
76 ->setMetaTitle(
'meta title')
77 ->setMetaKeyword(
'meta keyword')
78 ->setMetaDescription(
'meta description')
79 ->setVisibility(\
Magento\Catalog\Model\Product\Visibility::VISIBILITY_NOT_VISIBLE)
80 ->setStatus(\
Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
82 ->setCategoryIds([300])
83 ->setStockData([
'use_config_manage_stock' => 1,
'qty' => 50,
'is_qty_decimal' => 0,
'is_in_stock' => 1])
84 ->setSpecialPrice(
'15.99')
91 ->setAttributeSetId(4)
92 ->setName(
'Simple Product Visible and InStock')
93 ->setSku(
'simple_visible_in_stock')
94 ->setTaxClassId(
'none')
95 ->setDescription(
'description')
96 ->setShortDescription(
'short description')
99 ->setVisibility(\
Magento\Catalog\Model\Product\Visibility::VISIBILITY_IN_CATALOG)
100 ->setStatus(\
Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
102 ->setCategoryIds([300])
103 ->setStockData([
'use_config_manage_stock' => 1,
'qty' => 140,
'is_qty_decimal' => 0,
'is_in_stock' => 1])
104 ->setSpecialPrice(
'25.99')
static getObjectManager()