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()
119119 $ this ->assertTrue ($ this ->saveHandler ->write ("test_session_id " , "testdata " ));
120120 }
121121
122- /**
123- * @throws \Magento\Framework\Exception\LocalizedException
124- */
125122 public function testWriteMoreThanSessionMaxSize (): void
126123 {
127- $ this ->sessionMaxSizeConfigMock ->expects ($ this ->once ())
124+ $ this ->sessionMaxSizeConfigMock
125+ ->expects ($ this ->once ())
128126 ->method ('getSessionMaxSize ' )
129127 ->willReturn (1 );
130128
131- $ this ->saveHandlerAdapterMock ->expects ($ this ->never ())
129+ $ this ->saveHandlerAdapterMock
130+ ->expects ($ this ->never ())
132131 ->method ('read ' );
133132
134133 $ this ->assertTrue ($ this ->saveHandler ->write ("test_session_id " , "testdata " ));
135134 }
136-
137- /**
138- * @return void
139- */
135+
140136 public function testReadMoreThanSessionMaxSize (): void
141137 {
142- $ this ->sessionMaxSizeConfigMock ->expects ($ this ->once ())
138+ $ this ->sessionMaxSizeConfigMock
139+ ->expects ($ this ->once ())
143140 ->method ('getSessionMaxSize ' )
144141 ->willReturn (1 );
145142
146- $ this ->saveHandlerAdapterMock ->expects ($ this ->once ())
143+ $ this ->saveHandlerAdapterMock
144+ ->expects ($ this ->once ())
147145 ->method ('read ' )
148146 ->with ('test_session_id ' )
149147 ->willReturn ('test_session_data ' );
You can’t perform that action at this time.
0 commit comments