addRecipient() public method

where should the message go
public addRecipient ( paragraph1\phpFCM\Recipient\Recipient $recipient ) : Message
$recipient paragraph1\phpFCM\Recipient\Recipient
return Message
Beispiel #1
0
 public function testProxyUriOverridesDefaultUrl()
 {
     $proxy = 'my_nice_proxy_around_that_server';
     $this->fixture->setProxyApiUrl($proxy);
     $guzzle = \Mockery::mock(\GuzzleHttp\Client::class);
     $guzzle->shouldReceive('post')->once()->with($proxy, \Mockery::any())->andReturn(\Mockery::mock(Response::class));
     $this->fixture->injectHttpClient($guzzle);
     $message = new Message();
     $message->addRecipient(new Topic('test'));
     $this->fixture->send($message);
 }