โฌ๏ธUpgrading from 6.x
The testing trait got updated
Instead of manually using ->json('POST', $yourWebhookUrl)
, you can now import the Rennokki\LaravelSnsEvents\Concerns\GeneratesSnsMessages
trait in your TestCase
class and use the sendSnsMessage
method.
The certificate used for testing is auto-generated with OpenSSL and is auto-injected.
SSL certificate for testing now auto-initializes (you should remove the custom
initializeSsl()
method defined in yourTestCase
, if you have any)Renamed
$privateKey
to$snsPrivateKey
to avoid conflictsRenamed
$certificate
to$snsCertificate
to avoid conflictsRenamed
$validCertUrl
to$snsValidCertUrl
to avoid conflictsFor manual testing, either in
local
ortesting
, you can passsns_certificate
as query string orX-Sns-Testing-Certificate
as header to inject your certificate for message signing testing
Last updated