File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
dev/tests/integration/testsuite/Magento/Catalog/_files Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 7
7
8
8
use Magento \Catalog \Api \Data \ProductAttributeMediaGalleryEntryInterface ;
9
9
use Magento \Catalog \Api \Data \ProductInterfaceFactory ;
10
- use Magento \Catalog \Api \ProductRepositoryInterface ;
11
10
use Magento \Catalog \Model \Product \Attribute \Source \Status ;
12
11
use Magento \Catalog \Model \Product \Type ;
13
12
use Magento \Catalog \Model \Product \Visibility ;
28
27
$ websiteRepository = $ objectManager ->get (WebsiteRepositoryInterface::class);
29
28
$ baseWebsiteId = (int )$ websiteRepository ->get ('base ' )->getId ();
30
29
$ product = $ productFactory ->create ();
31
- /** @var ProductRepositoryInterface $productRepository */
32
30
$ product ->setTypeId (Type::TYPE_SIMPLE )
33
31
->setAttributeSetId ($ product ->getDefaultAttributeSetId ())
34
32
->setWebsiteIds ([$ baseWebsiteId ])
35
- ->setName ('Simple Product2 ' )
33
+ ->setName ('Simple product with disabled image ' )
36
34
->setSku ('simple_with_disabled_img ' )
37
35
->setPrice (10 )
38
36
->setMetaTitle ('meta title2 ' )
You can’t perform that action at this time.
0 commit comments