예제 #1
0
 public function testPaymentFailed()
 {
     $this->listener->expects($this->once())->method('prePaymentFailed');
     $this->listener->expects($this->once())->method('postPaymentFailed');
     $this->transaction->setDsResponse('9999');
     $this->manager->update($this->transaction);
 }
 public function testCreateTransAndRedirectToTpv()
 {
     $this->transaction = new Transaction(1);
     $this->manager->update($this->transaction);
     /** @var $crawler */
     $crawler = $this->client->request('GET', $this->route_index);
     $this->assertEquals($crawler->filter('body:contains(form)')->count(), 1);
 }
 public function testUpdateException()
 {
     $this->setExpectedException('Doctrine\\Common\\Persistence\\Mapping\\MappingException');
     $obj = new \stdClass();
     $this->manager->update($obj);
 }
 public function testPostTransaction()
 {
     $this->subscriber->expects($this->once())->method('postPersist');
     $this->transaction->setDsResponse('9999');
     $this->manager->update($this->transaction);
 }