Skip to content
Snippets Groups Projects
Commit c3cf732e authored by rliukshyn's avatar rliukshyn
Browse files

MTA-3788: Add variations to place order for Braintree

parent 370d7bd5
Branches
No related merge requests found
...@@ -18,13 +18,13 @@ class AssertCheckoutErrorMessage extends AbstractConstraint ...@@ -18,13 +18,13 @@ class AssertCheckoutErrorMessage extends AbstractConstraint
* Assert that error message is correct. * Assert that error message is correct.
* *
* @param CheckoutOnepage $checkoutOnepage * @param CheckoutOnepage $checkoutOnepage
* @param string $errorMessage * @param string $expectedErrorMessage
* @return void * @return void
*/ */
public function processAssert(CheckoutOnepage $checkoutOnepage, $errorMessage) public function processAssert(CheckoutOnepage $checkoutOnepage, $expectedErrorMessage)
{ {
\PHPUnit_Framework_Assert::assertEquals( \PHPUnit_Framework_Assert::assertEquals(
$errorMessage, $expectedErrorMessage,
$checkoutOnepage->getMessagesBlock()->getErrorMessage(), $checkoutOnepage->getMessagesBlock()->getErrorMessage(),
'Wrong error message is displayed.' 'Wrong error message is displayed.'
); );
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment