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)
21332133 * 'field1' => 'value',
21342134 * 'checkbox' => [
21352135 * 'value of first checkbox',
2136- * 'value of second checkbox,
2136+ * 'value of second checkbox' ,
21372137 * ],
21382138 * 'otherCheckboxes' => [
21392139 * true,
21402140 * false,
2141- * false
2141+ * false,
21422142 * ],
21432143 * 'multiselect' => [
21442144 * 'first option value',
2145- * 'second option value'
2145+ * 'second option value',
21462146 * ]
21472147 * ]);
21482148 * ?>
@@ -3117,7 +3117,7 @@ public function loadSessionSnapshot($name)
31173117 }
31183118
31193119 foreach ($ this ->sessionSnapshots [$ name ] as $ cookie ) {
3120- $ this ->setCookie ($ cookie-> getName () , $ cookie-> getValue (), $ cookie -> toArray () );
3120+ $ this ->setCookie ($ cookie[ ' name ' ] , $ cookie[ ' value ' ], ( array ) $ cookie );
31213121 }
31223122 $ this ->debugSection ('Snapshot ' , "Restored \"$ name \" session snapshot " );
31233123 return true ;
Original file line number Diff line number Diff line change @@ -677,17 +677,17 @@ public function testSaveSessionSnapshotsExcludeInvalidCookieDomains()
677677 $ fakeWdOptions = Stub::make ('\Facebook\WebDriver\WebDriverOptions ' , [
678678 'getCookies ' => Stub::atLeastOnce (function () {
679679 return [
680- Cookie:: createFromArray ( [
680+ [
681681 'name ' => 'PHPSESSID ' ,
682682 'value ' => '123456 ' ,
683683 'path ' => '/ ' ,
684- ]) ,
685- Cookie:: createFromArray ( [
684+ ],
685+ [
686686 'name ' => '3rdParty ' ,
687687 'value ' => '_value_ ' ,
688688 'path ' => '/ ' ,
689689 'domain ' => '.3rd-party.net ' ,
690- ]) ,
690+ ],
691691 ];
692692 }),
693693 ]);
You can’t perform that action at this time.
0 commit comments