Skip to content

Commit b0e6fc5

Browse files
author
Mariana Lashch
committed
Merge branch 'MAGETWO-92989' into mpi-PR-1607
2 parents 48d72db + 9b9afa7 commit b0e6fc5

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
@@ -1430,9 +1430,7 @@ private function destroyCustomerSessions($customerId)
14301430
/** @var \Magento\Customer\Model\Visitor $visitor */
14311431
foreach ($visitorCollection->getItems() as $visitor) {
14321432
$sessionId = $visitor->getSessionId();
1433-
$this->sessionManager->start();
14341433
$this->saveHandler->destroy($sessionId);
1435-
$this->sessionManager->writeClose();
14361434
}
14371435
}
14381436
}

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,6 @@ private function reInitModel()
13401340

13411341
$this->sessionManager = $this->getMockBuilder(\Magento\Framework\Session\SessionManagerInterface::class)
13421342
->disableOriginalConstructor()
1343-
->setMethods(['destroy', 'start', 'writeClose'])
13441343
->getMockForAbstractClass();
13451344
$this->visitorCollectionFactory = $this->getMockBuilder(
13461345
\Magento\Customer\Model\ResourceModel\Visitor\CollectionFactory::class
@@ -1470,8 +1469,6 @@ public function testChangePassword()
14701469
->method('save')
14711470
->with($customer);
14721471

1473-
$this->sessionManager->expects($this->atLeastOnce())->method('start');
1474-
$this->sessionManager->expects($this->atLeastOnce())->method('writeClose');
14751472
$this->sessionManager->expects($this->atLeastOnce())->method('getSessionId');
14761473

14771474
$visitor = $this->getMockBuilder(\Magento\Customer\Model\Visitor::class)
@@ -1527,8 +1524,6 @@ function ($string) {
15271524
->willReturn(null);
15281525

15291526
$this->sessionManager->expects($this->atLeastOnce())->method('destroy');
1530-
$this->sessionManager->expects($this->atLeastOnce())->method('start');
1531-
$this->sessionManager->expects($this->atLeastOnce())->method('writeClose');
15321527
$this->sessionManager->expects($this->atLeastOnce())->method('getSessionId');
15331528
$visitor = $this->getMockBuilder(\Magento\Customer\Model\Visitor::class)
15341529
->disableOriginalConstructor()

0 commit comments

Comments
 (0)