You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
845 B
39 lines
845 B
package service |
|
|
|
import ( |
|
"testing" |
|
|
|
"go-common/app/job/main/vip/model" |
|
|
|
. "github.com/smartystreets/goconvey/convey" |
|
) |
|
|
|
//go test -test.v -test.run TestAutoRenewPay |
|
func TestAutoRenewPay(t *testing.T) { |
|
Convey("TestAutoRenewPay ", t, func() { |
|
err := s.autoRenewPay(c, &model.VipUserInfoMsg{ |
|
IsAutoRenew: model.AutoRenew, |
|
PayChannelID: 100, |
|
Status: 0, |
|
Type: 1, |
|
}, &model.VipUserInfoMsg{ |
|
Type: 1, |
|
Status: 1, |
|
IsAutoRenew: model.AutoRenew, |
|
PayChannelID: 1, |
|
}) |
|
So(err, ShouldBeNil) |
|
err = s.autoRenewPay(c, &model.VipUserInfoMsg{ |
|
IsAutoRenew: model.AutoRenew, |
|
PayChannelID: 1, |
|
Status: 0, |
|
Type: 1, |
|
}, &model.VipUserInfoMsg{ |
|
Type: 1, |
|
Status: 1, |
|
IsAutoRenew: model.AutoRenew, |
|
PayChannelID: 1, |
|
}) |
|
So(err, ShouldBeNil) |
|
}) |
|
}
|
|
|