Skip to content

Commit 5f5185e

Browse files
committed
Fix bug with storing session in unit tests
1 parent 72da757 commit 5f5185e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/CheckoutPageTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function test_transactionErrorDisplaysErrorMessage()
6969
curl_setopt($curl, CURLOPT_POSTFIELDS, $fields_string);
7070
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
7171
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
72-
curl_setopt($curl, CURLOPT_COOKIEFILE, "");
72+
curl_setopt($curl, CURLOPT_COOKIEFILE, "/dev/null");
7373
$output = curl_exec($curl);
7474

7575
$redirectUrl = curl_getinfo($curl, CURLINFO_EFFECTIVE_URL);
@@ -95,7 +95,7 @@ function test_displaysStatusOnProcessorAndGatewayErrors()
9595
curl_setopt($curl, CURLOPT_POSTFIELDS, $fields_string);
9696
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
9797
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
98-
curl_setopt($curl, CURLOPT_COOKIEFILE, "");
98+
curl_setopt($curl, CURLOPT_COOKIEFILE, "/dev/null");
9999
$output = curl_exec($curl);
100100

101101
$redirectUrl = curl_getinfo($curl, CURLINFO_EFFECTIVE_URL);

0 commit comments

Comments
 (0)