public function testJsonResult() { $this->message->setRegistrationIds(['sdfshj']); $this->message->setCollapseKey('key'); $this->message->setDelayWhileIdle(true); $this->message->setTimeToLive(600); $this->message->setRestrictedPackageName('package.name'); $this->message->setDryRun(true); $this->message->setData(['key' => 'value']); $this->message->addNotificationPayload('first', 'first'); $result = json_decode($this->message->toJson()); self::assertTrue(isset($result->notification->first)); }