@@ -208,10 +208,10 @@ public function testCanCheckMultipleCheckboxesAtOnce()
208
208
209
209
public function testCanRepopulateCheckboxesFromPost ()
210
210
{
211
- $ this ->request ->shouldReceive ('get ' )->with ('_token ' , '' , true )->andReturn ('' );
212
- $ this ->request ->shouldReceive ('get ' )->with ('foo ' , '' , true )->andReturn ('' );
213
- $ this ->request ->shouldReceive ('get ' )->with ('foo_0 ' , '' , true )->andReturn (true );
214
- $ this ->request ->shouldReceive ('get ' )->with ('foo_1 ' , '' , true )->andReturn (false );
211
+ $ this ->request ->shouldReceive ('input ' )->with ('_token ' , '' , true )->andReturn ('' );
212
+ $ this ->request ->shouldReceive ('input ' )->with ('foo ' , '' , true )->andReturn ('' );
213
+ $ this ->request ->shouldReceive ('input ' )->with ('foo_0 ' , '' , true )->andReturn (true );
214
+ $ this ->request ->shouldReceive ('input ' )->with ('foo_1 ' , '' , true )->andReturn (false );
215
215
216
216
$ checkboxes = $ this ->former ->checkboxes ('foo ' )->checkboxes ('foo ' , 'bar ' )->__toString ();
217
217
$ matcher = $ this ->controlGroup ($ this ->matchCheckedCheckbox ('foo_0 ' , 'Foo ' ).$ this ->matchCheckbox ('foo_1 ' , 'Bar ' ));
@@ -280,7 +280,7 @@ public function testCanPushASingleCheckbox()
280
280
public function testCanRepopulateCheckboxesOnSubmit ()
281
281
{
282
282
$ this ->mockConfig (array ('push_checkboxes ' => true ));
283
- $ this ->request ->shouldReceive ('get ' )->andReturn ('' );
283
+ $ this ->request ->shouldReceive ('input ' )->andReturn ('' );
284
284
285
285
$ checkbox = $ this ->former ->checkbox ('foo ' )->text ('foo ' )->__toString ();
286
286
$ matcher = $ this ->controlGroup (
0 commit comments