File tree Expand file tree Collapse file tree 9 files changed +80
-1
lines changed
app/code/Magento/AsynchronousOperations/Model
dev/tests/integration/testsuite/Magento
CustomerImportExport/_files Expand file tree Collapse file tree 9 files changed +80
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,6 @@ public function isAllowed($bulkUuid)
55
55
$ this ->bulkSummaryFactory ->create (),
56
56
$ bulkUuid
57
57
);
58
- return $ bulkSummary ->getUserId () === $ this ->userContext ->getUserId ();
58
+ return (( int ) $ bulkSummary ->getUserId ()) === (( int ) $ this ->userContext ->getUserId () );
59
59
}
60
60
}
Original file line number Diff line number Diff line change 31
31
$ customer ->isObjectNew (true );
32
32
$ customer ->save ();
33
33
$ customerRegistry ->remove ($ customer ->getId ());
34
+ /** @var \Magento\JwtUserToken\Api\RevokedRepositoryInterface $revokedRepo */
35
+ $ revokedRepo = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()
36
+ ->get (\Magento \JwtUserToken \Api \RevokedRepositoryInterface::class);
37
+ $ revokedRepo ->saveRevoked (
38
+ new \Magento \JwtUserToken \Api \Data \Revoked (
39
+ \Magento \Authorization \Model \UserContextInterface::USER_TYPE_CUSTOMER ,
40
+ (int ) $ customer ->getId (),
41
+ time () - 3600 * 24
42
+ )
43
+ );
Original file line number Diff line number Diff line change 76
76
/** @var AddressRegistry $addressRegistry */
77
77
$ addressRegistry = $ objectManager ->get (AddressRegistry::class);
78
78
$ addressRegistry ->remove ($ customerAddress ->getId ());
79
+ /** @var \Magento\JwtUserToken\Api\RevokedRepositoryInterface $revokedRepo */
80
+ $ revokedRepo = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()
81
+ ->get (\Magento \JwtUserToken \Api \RevokedRepositoryInterface::class);
82
+ $ revokedRepo ->saveRevoked (
83
+ new \Magento \JwtUserToken \Api \Data \Revoked (
84
+ \Magento \Authorization \Model \UserContextInterface::USER_TYPE_CUSTOMER ,
85
+ (int ) $ customer ->getId (),
86
+ time () - 3600 * 24
87
+ )
88
+ );
Original file line number Diff line number Diff line change 82
82
83
83
$ customer ->save ();
84
84
$ customerRegistry ->remove ($ customer ->getId ());
85
+ /** @var \Magento\JwtUserToken\Api\RevokedRepositoryInterface $revokedRepo */
86
+ $ revokedRepo = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()
87
+ ->get (\Magento \JwtUserToken \Api \RevokedRepositoryInterface::class);
88
+ $ revokedRepo ->saveRevoked (
89
+ new \Magento \JwtUserToken \Api \Data \Revoked (
90
+ \Magento \Authorization \Model \UserContextInterface::USER_TYPE_CUSTOMER ,
91
+ (int ) $ customer ->getId (),
92
+ time () - 3600 * 24
93
+ )
94
+ );
Original file line number Diff line number Diff line change 29
29
->setGender (0 )
30
30
->save ();
31
31
$ customerRegistry ->remove ($ customer ->getId ());
32
+ /** @var \Magento\JwtUserToken\Api\RevokedRepositoryInterface $revokedRepo */
33
+ $ revokedRepo = Bootstrap::getObjectManager ()->get (\Magento \JwtUserToken \Api \RevokedRepositoryInterface::class);
34
+ $ revokedRepo ->saveRevoked (
35
+ new \Magento \JwtUserToken \Api \Data \Revoked (
36
+ \Magento \Authorization \Model \UserContextInterface::USER_TYPE_CUSTOMER ,
37
+ (int ) $ customer ->getId (),
38
+ time () - 3600 * 24
39
+ )
40
+ );
Original file line number Diff line number Diff line change 24
24
$ customer ->isObjectNew (true );
25
25
26
26
$ customer ->save ();
27
+ /** @var \Magento\JwtUserToken\Api\RevokedRepositoryInterface $revokedRepo */
28
+ $ revokedRepo = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()
29
+ ->get (\Magento \JwtUserToken \Api \RevokedRepositoryInterface::class);
30
+ $ revokedRepo ->saveRevoked (
31
+ new \Magento \JwtUserToken \Api \Data \Revoked (
32
+ \Magento \Authorization \Model \UserContextInterface::USER_TYPE_CUSTOMER ,
33
+ (int ) $ customer ->getId (),
34
+ time () - 3600 * 24
35
+ )
36
+ );
27
37
$ customer = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->create (
28
38
\Magento \Customer \Model \Customer::class
29
39
);
Original file line number Diff line number Diff line change 24
24
$ customer ->isObjectNew (true );
25
25
26
26
$ customer ->save ();
27
+ /** @var \Magento\JwtUserToken\Api\RevokedRepositoryInterface $revokedRepo */
28
+ $ revokedRepo = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()
29
+ ->get (\Magento \JwtUserToken \Api \RevokedRepositoryInterface::class);
30
+ $ revokedRepo ->saveRevoked (
31
+ new \Magento \JwtUserToken \Api \Data \Revoked (
32
+ \Magento \Authorization \Model \UserContextInterface::USER_TYPE_CUSTOMER ,
33
+ (int ) $ customer ->getId (),
34
+ time () - 3600 * 24
35
+ )
36
+ );
27
37
$ customer = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->create (
28
38
\Magento \Customer \Model \Customer::class
29
39
);
Original file line number Diff line number Diff line change 38
38
39
39
$ customer ->isObjectNew (true );
40
40
$ customer ->save ();
41
+ /** @var \Magento\JwtUserToken\Api\RevokedRepositoryInterface $revokedRepo */
42
+ $ revokedRepo = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()
43
+ ->get (\Magento \JwtUserToken \Api \RevokedRepositoryInterface::class);
44
+ $ revokedRepo ->saveRevoked (
45
+ new \Magento \JwtUserToken \Api \Data \Revoked (
46
+ \Magento \Authorization \Model \UserContextInterface::USER_TYPE_CUSTOMER ,
47
+ (int ) $ customer ->getId (),
48
+ time () - 3600 * 24
49
+ )
50
+ );
41
51
//Second for second website
42
52
/** @var Website $secondWebsite */
43
53
$ secondWebsite = $ objectManager ->create (Website::class);
Original file line number Diff line number Diff line change 46
46
$ customer ->save ();
47
47
48
48
$ customerRegistry ->remove ($ customer ->getId ());
49
+ /** @var \Magento\JwtUserToken\Api\RevokedRepositoryInterface $revokedRepo */
50
+ $ revokedRepo = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()
51
+ ->get (\Magento \JwtUserToken \Api \RevokedRepositoryInterface::class);
52
+ $ revokedRepo ->saveRevoked (
53
+ new \Magento \JwtUserToken \Api \Data \Revoked (
54
+ \Magento \Authorization \Model \UserContextInterface::USER_TYPE_CUSTOMER ,
55
+ (int ) $ customer ->getId (),
56
+ time () - 3600 * 24
57
+ )
58
+ );
You can’t perform that action at this time.
0 commit comments