File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -2133,16 +2133,16 @@ protected function getSubmissionFormFieldName($name)
2133
2133
* 'field1' => 'value',
2134
2134
* 'checkbox' => [
2135
2135
* 'value of first checkbox',
2136
- * 'value of second checkbox,
2136
+ * 'value of second checkbox' ,
2137
2137
* ],
2138
2138
* 'otherCheckboxes' => [
2139
2139
* true,
2140
2140
* false,
2141
- * false
2141
+ * false,
2142
2142
* ],
2143
2143
* 'multiselect' => [
2144
2144
* 'first option value',
2145
- * 'second option value'
2145
+ * 'second option value',
2146
2146
* ]
2147
2147
* ]);
2148
2148
* ?>
@@ -3117,7 +3117,7 @@ public function loadSessionSnapshot($name)
3117
3117
}
3118
3118
3119
3119
foreach ($ this ->sessionSnapshots [$ name ] as $ cookie ) {
3120
- $ this ->setCookie ($ cookie-> getName () , $ cookie-> getValue (), $ cookie -> toArray () );
3120
+ $ this ->setCookie ($ cookie[ ' name ' ] , $ cookie[ ' value ' ], ( array ) $ cookie );
3121
3121
}
3122
3122
$ this ->debugSection ('Snapshot ' , "Restored \"$ name \" session snapshot " );
3123
3123
return true ;
Original file line number Diff line number Diff line change @@ -677,17 +677,17 @@ public function testSaveSessionSnapshotsExcludeInvalidCookieDomains()
677
677
$ fakeWdOptions = Stub::make ('\Facebook\WebDriver\WebDriverOptions ' , [
678
678
'getCookies ' => Stub::atLeastOnce (function () {
679
679
return [
680
- Cookie:: createFromArray ( [
680
+ [
681
681
'name ' => 'PHPSESSID ' ,
682
682
'value ' => '123456 ' ,
683
683
'path ' => '/ ' ,
684
- ]) ,
685
- Cookie:: createFromArray ( [
684
+ ],
685
+ [
686
686
'name ' => '3rdParty ' ,
687
687
'value ' => '_value_ ' ,
688
688
'path ' => '/ ' ,
689
689
'domain ' => '.3rd-party.net ' ,
690
- ]) ,
690
+ ],
691
691
];
692
692
}),
693
693
]);
You can’t perform that action at this time.
0 commit comments