I have a method which returns Bool based on the PassKit. refer the below code:-
class func isHardwareSuportedForApplePay() -> Bool {
return PKPaymentAuthorizationViewController.canMakePayments()
}
I need to write test case of above function. I think I need to check for the device. If device is later than iPhone 5 then it should be true. But I don't know how to check device like. iPhone 5 and later. Please help.