Пример #1
0
 public function testDeleteCoupon()
 {
     $pk = '5599f782e3f434f616787edc';
     $coupon = new Coupon();
     $coupon->setId(new \MongoId($pk));
     $this->repository->expects($this->once())->method('findByPk')->with($pk)->willReturn($coupon);
     $this->repository->expects($this->once())->method('delete')->with($pk);
     $this->sut->deleteCoupon($pk);
 }