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
137
137
->with ('test_session_id ' )
138
138
->willReturn ('test_session_data ' );
139
139
140
- $ this ->appStateMock ->expects ($ this ->once ())
140
+ $ this ->appStateMock ->expects ($ this ->atLeastOnce ())
141
141
->method ('getAreaCode ' )
142
142
->willReturn (AppArea::AREA_FRONTEND );
143
143
$ this ->messageManagerMock ->expects ($ this ->once ())
@@ -160,7 +160,7 @@ public function testReadSessionMaxZero(): void
160
160
->with ('test_session_id ' )
161
161
->willReturn ('test_session_data ' );
162
162
163
- $ this ->appStateMock ->expects ($ this ->once ())
163
+ $ this ->appStateMock ->expects ($ this ->atLeastOnce ())
164
164
->method ('getAreaCode ' )
165
165
->willReturn (AppArea::AREA_FRONTEND );
166
166
$ this ->messageManagerMock ->expects ($ this ->once ())
@@ -184,9 +184,6 @@ public function testReadMoreThanSessionMaxSizeAdmin(): void
184
184
$ this ->appStateMock ->expects ($ this ->once ())
185
185
->method ('getAreaCode ' )
186
186
->willReturn (AppArea::AREA_ADMINHTML );
187
- $ this ->messageManagerMock ->expects ($ this ->once ())
188
- ->method ('addNoticeMessage ' )
189
- ->willReturnSelf ();
190
187
191
188
$ this ->assertEquals ('test_session_data ' , $ this ->saveHandler ->read ('test_session_id ' ));
192
189
}
You can’t perform that action at this time.
0 commit comments