コード例 #1
0
 public function testGetAllCouponsByIds()
 {
     $originalCoupon = $this->setupCoupon();
     $coupons = $this->couponRepository->getAllCouponsByIds([$originalCoupon->getId()]);
     $this->assertEquals($originalCoupon->getId(), $coupons[0]->getId());
 }
コード例 #2
0
 /**
  * @param UuidInterface[] $couponIds
  * @param Pagination $pagination
  * @return Coupon[]
  */
 public function getAllCouponsByIds($couponIds, Pagination &$pagination = null)
 {
     return $this->couponRepository->getAllCouponsByIds($couponIds, $pagination);
 }