File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Customer Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -237,4 +237,19 @@ public function testCreateCustomerIfPassedAttributeDosNotExistsInCustomerInput()
237
237
QUERY ;
238
238
$ this ->graphQlQuery ($ query );
239
239
}
240
+
241
+ public function tearDown ()
242
+ {
243
+ /** @var \Magento\Framework\Registry $registry */
244
+ $ registry = Bootstrap::getObjectManager ()->get (\Magento \Framework \Registry::class);
245
+ $ registry ->unregister ('isSecureArea ' );
246
+ $ registry ->register ('isSecureArea ' , true );
247
+ $ customersCollection = Bootstrap::getObjectManager ()->create (\Magento \Customer \Model \Customer::class);
248
+ foreach ($ customersCollection as $ customer ) {
249
+ $ this ->customerRepository ->deleteById ($ customer ->getId ());
250
+ }
251
+ $ registry ->unregister ('isSecureArea ' );
252
+ $ registry ->register ('isSecureArea ' , false );
253
+ parent ::tearDown ();
254
+ }
240
255
}
You can’t perform that action at this time.
0 commit comments