Skip to content

Commit 8563a98

Browse files
committed
Fixed failing test
1 parent a68d132 commit 8563a98

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

tests/web/WebDriverTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
use Codeception\Step;
44
use Codeception\Util\Stub;
5+
use Facebook\WebDriver\Cookie;
56
use Facebook\WebDriver\Remote\DesiredCapabilities;
67
use Facebook\WebDriver\Remote\RemoteWebDriver;
78
use Facebook\WebDriver\WebDriverBy;
@@ -675,17 +676,17 @@ public function testSaveSessionSnapshotsExcludeInvalidCookieDomains()
675676
$fakeWdOptions = Stub::make('\Facebook\WebDriver\WebDriverOptions', [
676677
'getCookies' => Stub::atLeastOnce(function () {
677678
return [
678-
[
679+
Cookie::createFromArray([
679680
'name' => 'PHPSESSID',
680681
'value' => '123456',
681682
'path' => '/',
682-
],
683-
[
683+
]),
684+
Cookie::createFromArray([
684685
'name' => '3rdParty',
685686
'value' => '_value_',
686687
'path' => '/',
687688
'domain' => '.3rd-party.net',
688-
]
689+
]),
689690
];
690691
}),
691692
]);

0 commit comments

Comments
 (0)