diff --git a/app/src/test/java/info/nightscout/androidaps/plugins/general/smsCommunicator/SmsCommunicatorPluginTest.java b/app/src/test/java/info/nightscout/androidaps/plugins/general/smsCommunicator/SmsCommunicatorPluginTest.java index d8bf191926..02ffd42d02 100644 --- a/app/src/test/java/info/nightscout/androidaps/plugins/general/smsCommunicator/SmsCommunicatorPluginTest.java +++ b/app/src/test/java/info/nightscout/androidaps/plugins/general/smsCommunicator/SmsCommunicatorPluginTest.java @@ -685,6 +685,14 @@ public class SmsCommunicatorPluginTest { Assert.assertEquals("Calibration sent. Receiving must be enabled in xDrip.", smsCommunicatorPlugin.messages.get(3).text); } + @Test + public void sendNotificationToAllNumbers() { + smsCommunicatorPlugin.messages = new ArrayList<>(); + smsCommunicatorPlugin.sendNotificationToAllNumbers("abc"); + Assert.assertEquals("abc", smsCommunicatorPlugin.messages.get(0).text); + Assert.assertEquals("abc", smsCommunicatorPlugin.messages.get(1).text); + } + @Before public void prepareTests() { AAPSMocker.mockMainApp();