@@ -78,7 +78,7 @@ public function testFormInput()
78
78
79
79
public function testPasswordsNotFilled ()
80
80
{
81
- $ this ->formBuilder ->setSessionStore ($ session = m::mock ('Illuminate\Session\Store ' ));
81
+ $ this ->formBuilder ->setSessionStore ($ session = m::mock ('Illuminate\Contracts\ Session\Session ' ));
82
82
83
83
$ session ->shouldReceive ('getOldInput ' )->never ();
84
84
@@ -89,7 +89,7 @@ public function testPasswordsNotFilled()
89
89
90
90
public function testFilesNotFilled ()
91
91
{
92
- $ this ->formBuilder ->setSessionStore ($ session = m::mock ('Illuminate\Session\Store ' ));
92
+ $ this ->formBuilder ->setSessionStore ($ session = m::mock ('Illuminate\Contracts\ Session\Session ' ));
93
93
94
94
$ session ->shouldReceive ('getOldInput ' )->never ();
95
95
@@ -113,7 +113,7 @@ public function testFormText()
113
113
114
114
public function testFormTextRepopulation ()
115
115
{
116
- $ this ->formBuilder ->setSessionStore ($ session = m::mock ('Illuminate\Session\Store ' ));
116
+ $ this ->formBuilder ->setSessionStore ($ session = m::mock ('Illuminate\Contracts\ Session\Session ' ));
117
117
$ this ->setModel ($ model = ['relation ' => ['key ' => 'attribute ' ], 'other ' => 'val ' ]);
118
118
119
119
$ session ->shouldReceive ('getOldInput ' )->twice ()->with ('name_with_dots ' )->andReturn ('some value ' );
@@ -319,7 +319,7 @@ public function testSelect()
319
319
public function testFormSelectRepopulation ()
320
320
{
321
321
$ list = ['L ' => 'Large ' , 'M ' => 'Medium ' , 'S ' => 'Small ' ];
322
- $ this ->formBuilder ->setSessionStore ($ session = m::mock ('Illuminate\Session\Store ' ));
322
+ $ this ->formBuilder ->setSessionStore ($ session = m::mock ('Illuminate\Contracts\ Session\Session ' ));
323
323
$ this ->setModel ($ model = ['size ' => ['key ' => 'S ' ], 'other ' => 'val ' ]);
324
324
325
325
$ session ->shouldReceive ('getOldInput ' )->twice ()->with ('size ' )->andReturn ('M ' );
@@ -405,7 +405,7 @@ public function testFormSelectMonth()
405
405
406
406
public function testFormCheckbox ()
407
407
{
408
- $ this ->formBuilder ->setSessionStore ($ session = m::mock ('Illuminate\Session\Store ' ));
408
+ $ this ->formBuilder ->setSessionStore ($ session = m::mock ('Illuminate\Contracts\ Session\Session ' ));
409
409
410
410
$ session ->shouldReceive ('getOldInput ' )->withNoArgs ()->andReturn ([]);
411
411
$ session ->shouldReceive ('getOldInput ' )->with ('foo ' )->andReturn (null );
@@ -423,7 +423,7 @@ public function testFormCheckbox()
423
423
424
424
public function testFormCheckboxRepopulation ()
425
425
{
426
- $ this ->formBuilder ->setSessionStore ($ session = m::mock ('Illuminate\Session\Store ' ));
426
+ $ this ->formBuilder ->setSessionStore ($ session = m::mock ('Illuminate\Contracts\ Session\Session ' ));
427
427
$ session ->shouldReceive ('getOldInput ' )->withNoArgs ()->andReturn ([1 ]);
428
428
429
429
$ session ->shouldReceive ('getOldInput ' )->once ()->with ('check ' )->andReturn (null );
@@ -446,7 +446,7 @@ public function testFormCheckboxRepopulation()
446
446
447
447
public function testFormCheckboxWithModelRelation ()
448
448
{
449
- $ this ->formBuilder ->setSessionStore ($ session = m::mock ('Illuminate\Session\Store ' ));
449
+ $ this ->formBuilder ->setSessionStore ($ session = m::mock ('Illuminate\Contracts\ Session\Session ' ));
450
450
$ session ->shouldReceive ('getOldInput ' )->withNoArgs ()->andReturn ([]);
451
451
$ session ->shouldReceive ('getOldInput ' )->with ('items ' )->andReturn (null );
452
452
@@ -491,7 +491,7 @@ public function testFormRadio()
491
491
492
492
public function testFormRadioRepopulation ()
493
493
{
494
- $ this ->formBuilder ->setSessionStore ($ session = m::mock ('Illuminate\Session\Store ' ));
494
+ $ this ->formBuilder ->setSessionStore ($ session = m::mock ('Illuminate\Contracts\ Session\Session ' ));
495
495
496
496
$ session ->shouldReceive ('getOldInput ' )->with ('radio ' )->andReturn (1 );
497
497
0 commit comments