File tree Expand file tree Collapse file tree 2 files changed +0
-7
lines changed
app/code/Magento/Customer Expand file tree Collapse file tree 2 files changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -1430,9 +1430,7 @@ private function destroyCustomerSessions($customerId)
1430
1430
/** @var \Magento\Customer\Model\Visitor $visitor */
1431
1431
foreach ($ visitorCollection ->getItems () as $ visitor ) {
1432
1432
$ sessionId = $ visitor ->getSessionId ();
1433
- $ this ->sessionManager ->start ();
1434
1433
$ this ->saveHandler ->destroy ($ sessionId );
1435
- $ this ->sessionManager ->writeClose ();
1436
1434
}
1437
1435
}
1438
1436
}
Original file line number Diff line number Diff line change @@ -1340,7 +1340,6 @@ private function reInitModel()
1340
1340
1341
1341
$ this ->sessionManager = $ this ->getMockBuilder (\Magento \Framework \Session \SessionManagerInterface::class)
1342
1342
->disableOriginalConstructor ()
1343
- ->setMethods (['destroy ' , 'start ' , 'writeClose ' ])
1344
1343
->getMockForAbstractClass ();
1345
1344
$ this ->visitorCollectionFactory = $ this ->getMockBuilder (
1346
1345
\Magento \Customer \Model \ResourceModel \Visitor \CollectionFactory::class
@@ -1470,8 +1469,6 @@ public function testChangePassword()
1470
1469
->method ('save ' )
1471
1470
->with ($ customer );
1472
1471
1473
- $ this ->sessionManager ->expects ($ this ->atLeastOnce ())->method ('start ' );
1474
- $ this ->sessionManager ->expects ($ this ->atLeastOnce ())->method ('writeClose ' );
1475
1472
$ this ->sessionManager ->expects ($ this ->atLeastOnce ())->method ('getSessionId ' );
1476
1473
1477
1474
$ visitor = $ this ->getMockBuilder (\Magento \Customer \Model \Visitor::class)
@@ -1527,8 +1524,6 @@ function ($string) {
1527
1524
->willReturn (null );
1528
1525
1529
1526
$ this ->sessionManager ->expects ($ this ->atLeastOnce ())->method ('destroy ' );
1530
- $ this ->sessionManager ->expects ($ this ->atLeastOnce ())->method ('start ' );
1531
- $ this ->sessionManager ->expects ($ this ->atLeastOnce ())->method ('writeClose ' );
1532
1527
$ this ->sessionManager ->expects ($ this ->atLeastOnce ())->method ('getSessionId ' );
1533
1528
$ visitor = $ this ->getMockBuilder (\Magento \Customer \Model \Visitor::class)
1534
1529
->disableOriginalConstructor ()
You can’t perform that action at this time.
0 commit comments