Skip to content

Commit cdf0e74

Browse files
committed
add device_type to shouldSendReceivedReceiptWhenEnabled test
- put "device_type" of 1 (ANDROID) to the payload
1 parent 742781c commit cdf0e74

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

OneSignalSDK/unittest/src/test/java/com/test/onesignal/GenerateNotificationRunner.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,10 @@ public void shouldSendReceivedReceiptWhenEnabled() throws Exception {
12681268
assertReportReceivedAtIndex(
12691269
2,
12701270
"UUID",
1271-
new JSONObject().put("app_id", appId).put("player_id", ShadowOneSignalRestClient.pushUserId)
1271+
new JSONObject()
1272+
.put("app_id", appId)
1273+
.put("player_id", ShadowOneSignalRestClient.pushUserId)
1274+
.put("device_type", 1)
12721275
);
12731276
}
12741277

0 commit comments

Comments
 (0)