File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
dev/tests/integration/testsuite/Magento/Customer/_files Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
7
7
use Magento \Customer \Api \CustomerRepositoryInterface ;
8
+ use Magento \Customer \Model \CustomerRegistry ;
8
9
use Magento \Framework \Exception \NoSuchEntityException ;
9
10
use Magento \Integration \Model \Oauth \Token \RequestThrottler ;
10
11
use Magento \TestFramework \Helper \Bootstrap ;
11
12
12
13
$ objectManager = Bootstrap::getObjectManager ();
14
+ $ objectManager ->removeSharedInstance (CustomerRegistry::class);
13
15
/** @var CustomerRepositoryInterface $customerRepository */
14
- $ customerRepository = $ objectManager ->get (CustomerRepositoryInterface::class);
16
+ $ customerRepository = $ objectManager ->create (CustomerRepositoryInterface::class);
15
17
/** @var \Magento\Framework\Registry $registry */
16
18
$ registry = $ objectManager ->get (\Magento \Framework \Registry::class);
17
19
You can’t perform that action at this time.
0 commit comments