File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Wishlist Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 16
16
use Magento \Wishlist \Model \ResourceModel \Wishlist \CollectionFactory ;
17
17
use Magento \Wishlist \Model \Wishlist ;
18
18
use Magento \Customer \Api \CustomerRepositoryInterface ;
19
+ use Magento \Framework \Registry ;
19
20
20
21
/**
21
22
* Test coverage for customer wishlists
@@ -127,13 +128,13 @@ public function testWishlistCreationScenario(): void
127
128
$ this ->assertArrayHasKey ('user_errors ' , $ addToWishlistResponse ['addProductsToWishlist ' ]);
128
129
$ this ->assertCount (0 , $ addToWishlistResponse ['addProductsToWishlist ' ]['user_errors ' ]);
129
130
} 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);
133
134
$ registry ->unregister ('isSecureArea ' );
134
135
$ registry ->register ('isSecureArea ' , true );
135
136
136
- $ objectManager = \ Magento \ TestFramework \ Helper \ Bootstrap::getObjectManager ();
137
+ $ objectManager = Bootstrap::getObjectManager ();
137
138
$ customerRepository = $ objectManager ->create (CustomerRepositoryInterface::class);
138
139
$ customer =
$ customerRepository->
get (
'[email protected] ' );
139
140
$ customerRepository ->delete ($ customer );
You can’t perform that action at this time.
0 commit comments