NotificationIsQueued example


        self::assertThat(self::getNotificationEvents()new NotifierConstraint\NotificationCount($count$transportName)$message);
    }

    public static function assertQueuedNotificationCount(int $count, string $transportName = null, string $message = ''): void
    {
        self::assertThat(self::getMessageMailerEvents()new NotifierConstraint\NotificationCount($count$transportName, true)$message);
    }

    public static function assertNotificationIsQueued(MessageEvent $event, string $message = ''): void
    {
        self::assertThat($eventnew NotifierConstraint\NotificationIsQueued()$message);
    }

    public static function assertNotificationIsNotQueued(MessageEvent $event, string $message = ''): void
    {
        self::assertThat($eventnew LogicalNot(new NotifierConstraint\NotificationIsQueued())$message);
    }

    public static function assertNotificationSubjectContains(MessageInterface $notification, string $text, string $message = ''): void
    {
        self::assertThat($notificationnew NotifierConstraint\NotificationSubjectContains($text)$message);
    }

    
Home | Imprint | This part of the site doesn't use cookies.