Skip to content

Commit 6e112a1

Browse files
author
Gabriel Galvao da Gama
committed
Updated test name and adjusted properties
1 parent c63c510 commit 6e112a1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
/**
2323
* Api tests for @see \Magento\LoginAsCustomerAssistance\Plugin\CustomerPlugin::afterSave.
2424
*/
25-
class CustomerPluginTest extends WebapiAbstract
25+
class CustomerAfterPluginTest extends WebapiAbstract
2626
{
27-
const SERVICE_VERSION = 'V1';
28-
const SERVICE_NAME = 'customerCustomerRepositoryV1';
29-
const RESOURCE_PATH = '/V1/customers';
27+
private const SERVICE_VERSION = 'V1';
28+
private const SERVICE_NAME = 'customerCustomerRepositoryV1';
29+
private const RESOURCE_PATH = '/V1/customers';
3030

3131
/**
3232
* @var DataObjectProcessor
@@ -54,10 +54,10 @@ class CustomerPluginTest extends WebapiAbstract
5454
protected function setUp(): void
5555
{
5656
$objectManager = Bootstrap::getObjectManager();
57-
$this->dataObjectProcessor = $objectManager->get(DataObjectProcessor::class);
58-
$this->customerRepository = $objectManager->get(CustomerRepositoryInterface::class);
59-
$this->customerRegistry = $objectManager->get(CustomerRegistry::class);
60-
$this->isAssistanceEnabled = $objectManager->get(GetLoginAsCustomerAssistanceAllowed::class);
57+
$this->dataObjectProcessor = $objectManager->create(DataObjectProcessor::class);
58+
$this->customerRepository = $objectManager->create(CustomerRepositoryInterface::class);
59+
$this->customerRegistry = $objectManager->create(CustomerRegistry::class);
60+
$this->isAssistanceEnabled = $objectManager->create(GetLoginAsCustomerAssistanceAllowed::class);
6161
}
6262

6363
/**

0 commit comments

Comments
 (0)