File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
app/code/Magento/Customer Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,12 @@ class AsyncRequestCustomerGroupAuthorization
33
33
34
34
/**
35
35
*
36
- * @param AuthorizationInterface|null $authorization
36
+ * @param AuthorizationInterface $authorization
37
37
*/
38
38
public function __construct (
39
- AuthorizationInterface $ authorization = null
39
+ AuthorizationInterface $ authorization
40
40
) {
41
- $ objectManager = ObjectManager::getInstance ();
42
- $ this ->authorization = $ authorization ?? $ objectManager ->get (AuthorizationInterface::class);
41
+ $ this ->authorization = $ authorization ;
43
42
}
44
43
45
44
/**
@@ -50,7 +49,7 @@ public function __construct(
50
49
* @param array $entitiesArray
51
50
* @param string|null $groupId
52
51
* @param string|null $userId
53
- * @return void
52
+ * @return null
54
53
* @throws AuthorizationException
55
54
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
56
55
*/
@@ -60,7 +59,7 @@ public function beforePublishMass(
60
59
array $ entitiesArray ,
61
60
string $ groupId = null ,
62
61
string $ userId = null
63
- ): void {
62
+ ) {
64
63
foreach ($ entitiesArray as $ entityParams ) {
65
64
foreach ($ entityParams as $ entity ) {
66
65
if ($ entity instanceof CustomerInterface) {
@@ -74,5 +73,6 @@ public function beforePublishMass(
74
73
}
75
74
}
76
75
}
76
+ return null ;
77
77
}
78
78
}
Original file line number Diff line number Diff line change 5
5
*/
6
6
declare (strict_types=1 );
7
7
8
- namespace Magento \Customer \Test \Plugin ;
8
+ namespace Magento \Customer \Test \Unit \ Plugin ;
9
9
10
10
use Magento \AsynchronousOperations \Model \MassSchedule ;
11
11
use Magento \Customer \Api \CustomerRepositoryInterface ;
You can’t perform that action at this time.
0 commit comments