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