Skip to content

Commit 7dfec32

Browse files
author
Prabhu Ram
committed
PWA-1619: New accounts created through GQL are not provisioned a wishlist
- Addressed review comments
1 parent fdaf21f commit 7dfec32

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Wishlist/CustomerWishlistsTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Magento\Wishlist\Model\ResourceModel\Wishlist\CollectionFactory;
1717
use Magento\Wishlist\Model\Wishlist;
1818
use Magento\Customer\Api\CustomerRepositoryInterface;
19+
use Magento\Framework\Registry;
1920

2021
/**
2122
* Test coverage for customer wishlists
@@ -127,13 +128,13 @@ public function testWishlistCreationScenario(): void
127128
$this->assertArrayHasKey('user_errors', $addToWishlistResponse['addProductsToWishlist']);
128129
$this->assertCount(0, $addToWishlistResponse['addProductsToWishlist']['user_errors']);
129130
} finally {
130-
/** @var \Magento\Framework\Registry $registry */
131-
$registry = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
132-
->get(\Magento\Framework\Registry::class);
131+
/** @var Registry $registry */
132+
$registry = Bootstrap::getObjectManager()
133+
->get(Registry::class);
133134
$registry->unregister('isSecureArea');
134135
$registry->register('isSecureArea', true);
135136

136-
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
137+
$objectManager = Bootstrap::getObjectManager();
137138
$customerRepository = $objectManager->create(CustomerRepositoryInterface::class);
138139
$customer = $customerRepository->get('[email protected]');
139140
$customerRepository->delete($customer);

0 commit comments

Comments
 (0)