File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed
lib/internal/Magento/Framework/Session/Test/Unit Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -119,31 +119,29 @@ public function testWriteSessionMaxSizeNull()
119
119
$ this ->assertTrue ($ this ->saveHandler ->write ("test_session_id " , "testdata " ));
120
120
}
121
121
122
- /**
123
- * @throws \Magento\Framework\Exception\LocalizedException
124
- */
125
122
public function testWriteMoreThanSessionMaxSize (): void
126
123
{
127
- $ this ->sessionMaxSizeConfigMock ->expects ($ this ->once ())
124
+ $ this ->sessionMaxSizeConfigMock
125
+ ->expects ($ this ->once ())
128
126
->method ('getSessionMaxSize ' )
129
127
->willReturn (1 );
130
128
131
- $ this ->saveHandlerAdapterMock ->expects ($ this ->never ())
129
+ $ this ->saveHandlerAdapterMock
130
+ ->expects ($ this ->never ())
132
131
->method ('read ' );
133
132
134
133
$ this ->assertTrue ($ this ->saveHandler ->write ("test_session_id " , "testdata " ));
135
134
}
136
-
137
- /**
138
- * @return void
139
- */
135
+
140
136
public function testReadMoreThanSessionMaxSize (): void
141
137
{
142
- $ this ->sessionMaxSizeConfigMock ->expects ($ this ->once ())
138
+ $ this ->sessionMaxSizeConfigMock
139
+ ->expects ($ this ->once ())
143
140
->method ('getSessionMaxSize ' )
144
141
->willReturn (1 );
145
142
146
- $ this ->saveHandlerAdapterMock ->expects ($ this ->once ())
143
+ $ this ->saveHandlerAdapterMock
144
+ ->expects ($ this ->once ())
147
145
->method ('read ' )
148
146
->with ('test_session_id ' )
149
147
->willReturn ('test_session_data ' );
You can’t perform that action at this time.
0 commit comments