File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
dev/tests/integration/testsuite/Magento/Catalog/_files Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
7
7
use Magento \Catalog \Api \Data \ProductTierPriceExtensionFactory ;
8
- use Magento \Catalog \Api \Data \ProductExtension ;
8
+ use Magento \Catalog \Api \Data \ProductExtensionInterfaceFactory ;
9
9
10
10
\Magento \TestFramework \Helper \Bootstrap::getInstance ()->reinitialize ();
11
11
20
20
$ tierPriceFactory = $ objectManager ->get (\Magento \Catalog \Api \Data \ProductTierPriceInterfaceFactory::class);
21
21
/** @var $tpExtensionAttributes */
22
22
$ tpExtensionAttributesFactory = $ objectManager ->get (ProductTierPriceExtensionFactory::class);
23
+ /** @var $productExtensionAttributes */
24
+ $ productExtensionAttributesFactory = $ objectManager ->get (ProductExtensionInterfaceFactory::class);
23
25
24
26
$ adminWebsite = $ objectManager ->get (\Magento \Store \Api \WebsiteRepositoryInterface::class)->get ('admin ' );
25
27
$ tierPriceExtensionAttributes1 = $ tpExtensionAttributesFactory ->create ()
26
28
->setWebsiteId ($ adminWebsite ->getId ());
27
-
28
- /** @var $productExtension */
29
- $ productExtensionAttributesWebsiteIds = $ objectManager ->get (ProductExtension::class);
30
- $ productExtensionAttributesWebsiteIds ->setWebsiteIds ([$ adminWebsite ->getId ()]);
29
+ $ productExtensionAttributesWebsiteIds = $ productExtensionAttributesFactory ->create (
30
+ ['website_ids ' => $ adminWebsite ->getId ()]
31
+ );
31
32
32
33
$ tierPrices [] = $ tierPriceFactory ->create (
33
34
[
You can’t perform that action at this time.
0 commit comments