public function testIsOrderCompletedTrue() { $this->transaction = new Transaction(13); $this->transaction->setDsResponse('0000'); $em = $this->manager->getEntityManager(); $em->persist($this->transaction); $em->flush(); $this->assertTrue($this->manager->isOrderCompleted(13)); }
public function testPostTransaction() { $this->subscriber->expects($this->once())->method('postPersist'); $this->transaction->setDsResponse('9999'); $this->manager->update($this->transaction); }