/** * @Then I should be notified that it has been successfully created */ public function iShouldBeNotifiedItHasBeenSuccessfulCreation() { $this->notificationChecker->checkCreationNotification(self::RESOURCE_NAME); }
function it_asserts_that_resource_was_successfully_created(NotificationCheckerInterface $notificationValidator) { $notificationValidator->checkCreationNotification('locale')->shouldBeCalled(); $this->iShouldBeNotifiedAboutSuccessfulCreation(); }
function it_asserts_that_successful_creation_message_appears(NotificationCheckerInterface $notificationValidator) { $notificationValidator->checkCreationNotification('country')->shouldBeCalled(); $this->iShouldBeNotifiedAboutSuccessfulCreation(); }
function it_checks_if_a_resource_was_successfully_created(NotificationCheckerInterface $notificationValidator) { $notificationValidator->checkCreationNotification('tax_category')->shouldBeCalled(); $this->iShouldBeNotifiedItHasBeenSuccessfulCreation(); }