File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
lib/internal/Magento/Framework/Session/Test/Unit Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments