mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-06-08 05:58:29 -05:00
23 lines
423 B
Go
23 lines
423 B
Go
|
|
package service
|
||
|
|
|
||
|
|
import (
|
||
|
|
"testing"
|
||
|
|
|
||
|
|
"go-common/app/job/main/vip/model"
|
||
|
|
|
||
|
|
. "github.com/smartystreets/goconvey/convey"
|
||
|
|
)
|
||
|
|
|
||
|
|
//go test -test.v -test.run TestCouponNotify
|
||
|
|
func TestCouponNotify(t *testing.T) {
|
||
|
|
Convey("TestCouponNotify ", t, func() {
|
||
|
|
o := &model.VipPayOrderNewMsg{
|
||
|
|
OrderNo: "1807211806450011799",
|
||
|
|
Status: model.SUCCESS,
|
||
|
|
Mid: 1,
|
||
|
|
}
|
||
|
|
err := s.CouponNotify(c, o)
|
||
|
|
So(err, ShouldBeNil)
|
||
|
|
})
|
||
|
|
}
|