Skip to content

Commit 8acdb12

Browse files
committed
Small changes to make the example repos idiomatic
1 parent 46e1a43 commit 8acdb12

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

public_html/checkout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
$errorString = "";
2121

2222
foreach($result->errors->deepAll() AS $error) {
23-
$errorString .= $error->code . "-" . $error->message . "\n";
23+
$errorString .= 'Error: ' . $error->code . ": " . $error->message . "\n";
2424
}
2525

2626
$_SESSION["errors"] = $errorString;

tests/integration/CheckoutPageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function test_transactionErrorDisplaysErrorMessage()
7676
curl_close($curl);
7777

7878
$this->assertRegExp('/\/index.php/', $redirectUrl);
79-
$this->assertRegExp('/Cannot use a paymentMethodNonce more than once./', $output);
79+
$this->assertRegExp('/Error: 91564: Cannot use a paymentMethodNonce more than once./', $output);
8080
}
8181

8282
function test_displaysStatusOnProcessorAndGatewayErrors()

0 commit comments

Comments
 (0)