Files
faveo/vendor/brozot/laravel-fcm/doc/LaravelFCM-Test-Mocks-MockTopicResponse.md
2023-01-30 14:33:06 +05:30

1.5 KiB

LaravelFCM\Test\Mocks\MockTopicResponse

Class MockTopicResponse Only use it for testing

Methods

setSuccess

mixed LaravelFCM\Test\Mocks\MockTopicResponse::setSuccess($messageId)

if success set a message id

  • Visibility: public

Arguments

  • $messageId mixed

isSuccess

boolean LaravelFCM\Response\TopicResponseContract::isSuccess()

true if topic sent with success

setError

mixed LaravelFCM\Test\Mocks\MockTopicResponse::setError($error)

set error

  • Visibility: public

Arguments

  • $error mixed

error

string LaravelFCM\Response\TopicResponseContract::error()

return error message you should test if it's necessary to resent it

shouldRetry

boolean LaravelFCM\Response\TopicResponseContract::shouldRetry()

return true if it's necessary resent it using exponential backoff