/** * @Then I should see that I have to pay :paymentAmount for this order * @Then I should see :paymentTotal as payment total */ public function iShouldSeeIHaveToPayForThisOrder($paymentAmount) { Assert::same($this->orderShowPage->getPaymentPrice(), $paymentAmount, 'Payment total is %s, but should be %s.'); }
/** * @Then I should see that I have to pay :paymentAmount for this order */ public function iShouldSeeIHaveToPayForThisOrder($paymentAmount) { $actualAmount = $this->orderShowPage->getPaymentPrice(); Assert::eq($paymentAmount, $actualAmount); }