I'm trying to test a class I'm using with a Trigger. The Trigger fires when events and tasks are created/modified/deleted.
I'm able to test the task creation just fine, but when I try to test the event creation with the code below I'm greeted with a 'Methods defined as TestMethod do not support Web service callouts, test skipped' message on the line where I'm creating the event.
Event e = new Event(subject='Test Event', whatId = account.id, startDateTime = DateTime.valueOf('2014-04-26 14:45:05'), endDateTime = DateTime.valueOf('2014-04-26 14:45:05')); insert e; //Verify count = 1 account = [SELECT ID, activity_count__c FROM Account WHERE ID = :account.id]; System.assertEquals(1, account.activity_count__c);
I've tried using System.now() to set my dates as well as what you see above. Both provide me with the same results. Any ideas of what I'm missing?