@@ -426,7 +426,7 @@ public function testApproveAndDepositPluginReturnsUnsuccessfulResponse()
426
426
}
427
427
428
428
/**
429
- * @expectedException JMS\Payment\CoreBundle\PluginController\Exception\InvalidPaymentInstructionException
429
+ * @expectedException \RuntimeException
430
430
* @expectedMessage foo
431
431
*/
432
432
public function testAproveAndDepositPluginThrowsException ()
@@ -436,7 +436,7 @@ public function testAproveAndDepositPluginThrowsException()
436
436
$ payment ->getPaymentInstruction ()->setState (PaymentInstructionInterface::STATE_VALID );
437
437
438
438
$ plugin = $ this ->getPlugin ();
439
- $ exception = new \JMS \ Payment \ CoreBundle \ PluginController \ Exception \ InvalidPaymentInstructionException ('foo ' );
439
+ $ exception = new \RuntimeException ('foo ' );
440
440
$ plugin
441
441
->expects ($ this ->once ())
442
442
->method ('approveAndDeposit ' )
@@ -665,7 +665,7 @@ public function testApprovePluginThrowsTimeoutException()
665
665
}
666
666
667
667
/**
668
- * @expectedException \JMS\Payment\CoreBundle\PluginController\Exception\InvalidPaymentInstructionException
668
+ * @expectedException \RuntimeException
669
669
*/
670
670
public function testApprovePluginThrowsException ()
671
671
{
@@ -680,7 +680,7 @@ public function testApprovePluginThrowsException()
680
680
$ plugin
681
681
->expects ($ this ->once ())
682
682
->method ('approve ' )
683
- ->will ($ this ->throwException (new \JMS \ Payment \ CoreBundle \ PluginController \ Exception \ InvalidPaymentInstructionException ('some error occurred ' )))
683
+ ->will ($ this ->throwException (new \RuntimeException ('some error occurred ' )))
684
684
;
685
685
$ controller ->addPlugin ($ plugin );
686
686
@@ -1004,4 +1004,4 @@ protected function createDependentCredit(PluginController $controller, array $ar
1004
1004
1005
1005
return $ reflection ->invokeArgs ($ controller , $ args );
1006
1006
}
1007
- }
1007
+ }
0 commit comments