Hi I'm developing a Wordpress plugin which accesses a couple of API's (Amazon Product API, Flickr, Freebase, Ebay). I've already started writing unit tests for it but I'm still wondering if its really the way to go since it takes a lot of time downloading data from the API primarily because my download speed isn't that fast (around 2 Mb/s max). Currently it takes 2 hours or more to run the whole test suite and sometimes I even reach the API limit and the test won't pass.
Is there a better way of doing this? Perhaps automating the test or even allow me to upload the tests somewhere which has a faster download speed.
Do I really need to be testing methods which access the API to begin with? Can I just make use of a mock data instead of querying the API directly?
Thanks in advance!