Skip to content

Commit 0bf1b20

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-93282' into 2.3-develop-pr2
2 parents b6d3239 + d11bc51 commit 0bf1b20

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

app/code/Magento/Customer/Model/AccountManagement.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,9 +1468,7 @@ private function destroyCustomerSessions($customerId)
14681468
/** @var \Magento\Customer\Model\Visitor $visitor */
14691469
foreach ($visitorCollection->getItems() as $visitor) {
14701470
$sessionId = $visitor->getSessionId();
1471-
$this->sessionManager->start();
14721471
$this->saveHandler->destroy($sessionId);
1473-
$this->sessionManager->writeClose();
14741472
}
14751473
}
14761474
}

app/code/Magento/Customer/Test/Unit/Model/AccountManagementTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,7 +1361,6 @@ private function reInitModel()
13611361
$this->prepareDateTimeFactory();
13621362
$this->sessionManager = $this->getMockBuilder(\Magento\Framework\Session\SessionManagerInterface::class)
13631363
->disableOriginalConstructor()
1364-
->setMethods(['destroy', 'start', 'writeClose'])
13651364
->getMockForAbstractClass();
13661365
$this->visitorCollectionFactory = $this->getMockBuilder(
13671366
\Magento\Customer\Model\ResourceModel\Visitor\CollectionFactory::class
@@ -1494,8 +1493,6 @@ public function testChangePassword()
14941493
->method('save')
14951494
->with($customer);
14961495

1497-
$this->sessionManager->expects($this->atLeastOnce())->method('start');
1498-
$this->sessionManager->expects($this->atLeastOnce())->method('writeClose');
14991496
$this->sessionManager->expects($this->atLeastOnce())->method('getSessionId');
15001497

15011498
$visitor = $this->getMockBuilder(\Magento\Customer\Model\Visitor::class)
@@ -1551,8 +1548,6 @@ function ($string) {
15511548
$this->customerSecure->expects($this->any())->method('setPasswordHash')->willReturn(null);
15521549

15531550
$this->sessionManager->expects($this->atLeastOnce())->method('destroy');
1554-
$this->sessionManager->expects($this->atLeastOnce())->method('start');
1555-
$this->sessionManager->expects($this->atLeastOnce())->method('writeClose');
15561551
$this->sessionManager->expects($this->atLeastOnce())->method('getSessionId');
15571552
$visitor = $this->getMockBuilder(\Magento\Customer\Model\Visitor::class)
15581553
->disableOriginalConstructor()

0 commit comments

Comments
 (0)