File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
dev/tests/api-functional/testsuite/Magento/LoginAsCustomerAssistance/Plugin Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 22
22
/**
23
23
* Api tests for @see \Magento\LoginAsCustomerAssistance\Plugin\CustomerPlugin::afterSave.
24
24
*/
25
- class CustomerPluginTest extends WebapiAbstract
25
+ class CustomerAfterPluginTest extends WebapiAbstract
26
26
{
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 ' ;
30
30
31
31
/**
32
32
* @var DataObjectProcessor
@@ -54,10 +54,10 @@ class CustomerPluginTest extends WebapiAbstract
54
54
protected function setUp (): void
55
55
{
56
56
$ 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);
61
61
}
62
62
63
63
/**
You can’t perform that action at this time.
0 commit comments