Skip to content

Commit f098626

Browse files
committed
ACP2E-3813: Updating products using the Mass Action, resulted in an unexpected system logout
1 parent 14e9cc8 commit f098626

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/internal/Magento/Framework/Session/Test/Unit/SaveHandlerTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function testReadMoreThanSessionMaxSize(): void
137137
->with('test_session_id')
138138
->willReturn('test_session_data');
139139

140-
$this->appStateMock->expects($this->once())
140+
$this->appStateMock->expects($this->atLeastOnce())
141141
->method('getAreaCode')
142142
->willReturn(AppArea::AREA_FRONTEND);
143143
$this->messageManagerMock->expects($this->once())
@@ -160,7 +160,7 @@ public function testReadSessionMaxZero(): void
160160
->with('test_session_id')
161161
->willReturn('test_session_data');
162162

163-
$this->appStateMock->expects($this->once())
163+
$this->appStateMock->expects($this->atLeastOnce())
164164
->method('getAreaCode')
165165
->willReturn(AppArea::AREA_FRONTEND);
166166
$this->messageManagerMock->expects($this->once())
@@ -184,9 +184,6 @@ public function testReadMoreThanSessionMaxSizeAdmin(): void
184184
$this->appStateMock->expects($this->once())
185185
->method('getAreaCode')
186186
->willReturn(AppArea::AREA_ADMINHTML);
187-
$this->messageManagerMock->expects($this->once())
188-
->method('addNoticeMessage')
189-
->willReturnSelf();
190187

191188
$this->assertEquals('test_session_data', $this->saveHandler->read('test_session_id'));
192189
}

0 commit comments

Comments
 (0)