Need to write unit testing for the following code, I want to do mock for instance static method canMakePayments, return yes or no, so far no good method found dues to canMakePayments is a static method (+), seems all OCMock methods are all used for object method (-).
You guys any suggestion or discussion will be appreciated. Thanks.
// SKPaymentQueue.h
// StoreKit
if ([SKPaymentQueue canMakePayments]){
....
}
else{
...
}