コード例 #1
0
 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));
 }
コード例 #2
0
 public function testPostTransaction()
 {
     $this->subscriber->expects($this->once())->method('postPersist');
     $this->transaction->setDsResponse('9999');
     $this->manager->update($this->transaction);
 }