/** * @Then it should have payment state :paymentState */ public function itShouldHavePaymentState($paymentState) { Assert::true($this->showPage->hasPayment($paymentState), sprintf('It should have payment with %s state', $paymentState)); }
/** * @Then it should have completed payment state */ public function itShouldHaveCompletedPaymentState() { Assert::true($this->showPage->hasPayment('Completed'), 'It should have payment with completed state.'); }