function it_asserts_that_successful_edition_message_appears(NotificationCheckerInterface $notificationValidator) { $notificationValidator->checkEditionNotification('country')->shouldBeCalled(); $this->iShouldBeNotifiedAboutSuccessfulEdition(); }
/** * @Then I should be notified about successful edition */ public function iShouldBeNotifiedAboutSuccessfulEdition() { $this->notificationChecker->checkEditionNotification(self::RESOURCE_NAME); }
function it_checks_if_a_resource_was_successfully_updated(NotificationCheckerInterface $notificationValidator) { $notificationValidator->checkEditionNotification('tax_category')->shouldBeCalled(); $this->iShouldBeNotifiedAboutSuccessfulEdition(); }