paragraph1\phpFCM\Tests\MessageTest::testAddingMultipleDeviceRecipientsAddsRegistrationIds PHP Method

testAddingMultipleDeviceRecipientsAddsRegistrationIds() public method

    public function testAddingMultipleDeviceRecipientsAddsRegistrationIds()
    {
        $body = '{"registration_ids":["deviceId","anotherDeviceId"],"priority":"high","notification":{"title":"test","body":"a nice testing notification"}}';
        $notification = new Notification('test', 'a nice testing notification');
        $this->fixture->setNotification($notification);
        $this->fixture->addRecipient(new Device('deviceId'))->addRecipient(new Device('anotherDeviceId'));
        $this->assertSame($body, json_encode($this->fixture));
    }