File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Sales Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,8 @@ private function assertWithOutOfStockVariation(
164
164
* @throws \Magento\Framework\Exception\StateException
165
165
* @throws NoSuchEntityException
166
166
*/
167
- public function testWithDeletedVariation (): void {
167
+ public function testWithDeletedVariation (): void
168
+ {
168
169
/** @var \Magento\Catalog\Api\ProductRepositoryInterface $repository */
169
170
$ productRepository = Bootstrap::getObjectManager ()
170
171
->create (\Magento \Catalog \Api \ProductRepositoryInterface::class);
Original file line number Diff line number Diff line change @@ -254,10 +254,7 @@ private function assertWithDeletedProduct(
254
254
->get (\Magento \Framework \Registry::class);
255
255
$ registry ->unregister ('isSecureArea ' );
256
256
$ registry ->register ('isSecureArea ' , true );
257
-
258
- $ productId = $ product ->getId ();
259
257
$ productRepository ->delete ($ product );
260
-
261
258
$ registry ->unregister ('isSecureArea ' );
262
259
$ registry ->register ('isSecureArea ' , false );
263
260
You can’t perform that action at this time.
0 commit comments