Skip to content

Commit 5bb46ce

Browse files
author
Gabriel Galvao da Gama
committed
Fixing failed tests
1 parent 6e112a1 commit 5bb46ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dev/tests/api-functional/testsuite/Magento/LoginAsCustomerAssistance/Plugin/CustomerAfterPluginTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,11 @@ protected function setUp(): void
5555
{
5656
$objectManager = Bootstrap::getObjectManager();
5757
$this->dataObjectProcessor = $objectManager->create(DataObjectProcessor::class);
58-
$this->customerRepository = $objectManager->create(CustomerRepositoryInterface::class);
5958
$this->customerRegistry = $objectManager->create(CustomerRegistry::class);
59+
$this->customerRepository = $objectManager->create(
60+
CustomerRepositoryInterface::class,
61+
['customerRegistry' => $this->customerRegistry]
62+
);
6063
$this->isAssistanceEnabled = $objectManager->create(GetLoginAsCustomerAssistanceAllowed::class);
6164
}
6265

0 commit comments

Comments
 (0)