updated-packages

This commit is contained in:
RafficMohammed
2023-01-08 00:13:22 +05:30
parent 3ff7df7487
commit da241bacb6
12659 changed files with 563377 additions and 510538 deletions

View File

@@ -1,5 +1,6 @@
<?php
use LaravelFCM\Message\Exceptions\InvalidOptionsException;
use LaravelFCM\Message\OptionsBuilder;
use LaravelFCM\Message\OptionsPriorities;
use LaravelFCM\Message\PayloadDataBuilder;
@@ -127,4 +128,16 @@ class PayloadTest extends FCMTestCase
$json = json_encode($notificationBuilder->build()->toArray());
$this->assertJsonStringEqualsJsonString($targetFull, $json);
}
/**
* @test
*/
public function it_throws_an_invalidoptionsexception_if_the_interval_is_too_big()
{
$this->setExpectedException(InvalidOptionsException::class);
$optionBuilder = new OptionsBuilder();
$optionBuilder->setTimeToLive(2419200 * 10);
}
}

View File

@@ -79,7 +79,7 @@ class MockTopicResponse implements TopicResponseContract
*/
public function error()
{
$this->error;
return $this->error;
}
/**
@@ -89,6 +89,6 @@ class MockTopicResponse implements TopicResponseContract
*/
public function shouldRetry()
{
$this->error;
return (bool) $this->error;
}
}