File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
dev/tests/integration/testsuite/Magento/Catalog/_files Expand file tree Collapse file tree 1 file changed +5
-6
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 \ProductExtensionInterfaceFactory ;
8
+ use Magento \Catalog \Api \Data \ProductExtension ;
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);
25
23
26
24
$ adminWebsite = $ objectManager ->get (\Magento \Store \Api \WebsiteRepositoryInterface::class)->get ('admin ' );
27
25
$ tierPriceExtensionAttributes1 = $ tpExtensionAttributesFactory ->create ()
28
26
->setWebsiteId ($ adminWebsite ->getId ());
29
- $ productExtensionAttributesWebsiteIds = $ productExtensionAttributesFactory ->create (
30
- ['website_ids ' => $ adminWebsite ->getId ()]
31
- );
27
+
28
+ /** @var $productExtension */
29
+ $ productExtensionAttributesWebsiteIds = $ objectManager ->get (ProductExtension::class);
30
+ $ productExtensionAttributesWebsiteIds ->setWebsiteIds ([$ adminWebsite ->getId ()]);
32
31
33
32
$ tierPrices [] = $ tierPriceFactory ->create (
34
33
[
You can’t perform that action at this time.
0 commit comments