eds test: support setting email addresses in test backend
authorTravis Reitter <travis.reitter@collabora.co.uk>
Sun, 30 Dec 2012 20:17:21 +0000 (12:17 -0800)
committerTravis Reitter <travis.reitter@collabora.co.uk>
Sun, 6 Jan 2013 01:29:12 +0000 (17:29 -0800)
tests/lib/eds/backend.vala

index c72b417..202c7dc 100644 (file)
@@ -272,6 +272,16 @@ public class EdsTest.Backend
                       e.message);
                 }
             }
+          else if (k == "email_addresses")
+            {
+              var v = c.get (k).get_string ();
+              var addresses = v.split (",");
+
+              foreach (var addr in addresses)
+                {
+                  contact.set (E.Contact.field_id ("email"), addr);
+                }
+            }
           else if (k == "im_addresses")
             {
               var v = c.get (k).get_string ();