diff --git a/tests/bb-library/Payment/Adapter/Payment_Adapter_StripeTest.php b/tests/bb-library/Payment/Adapter/Payment_Adapter_StripeTest.php index 7d93a7519..a77ec965e 100644 --- a/tests/bb-library/Payment/Adapter/Payment_Adapter_StripeTest.php +++ b/tests/bb-library/Payment/Adapter/Payment_Adapter_StripeTest.php @@ -160,39 +160,6 @@ class Payment_Adapter_StripeTest extends PHPUnit_Framework_TestCase { $this->assertEquals($expectedTitle, $result); } - public function testlogError() - { - $di = new Box_Di(); - $di['config'] = array('debug' => false); - - $transactionModel = new Model_Transaction(); - $transactionModel->loadBean(new \RedBeanPHP\OODBBean()); - - $dbMock = $this->getMockBuilder('\Box_Database')->getMock(); - $dbMock->expects($this->atLeastOnce()) - ->method('store') - ->with($transactionModel); - $di['db'] = $dbMock; - - $bodyArr = array( - 'error' => array( - 'type' => 'custom', - 'message' => 'Unit tests', - ) - ); - - $exceptionMock = $this->getMockBuilder('Stripe\\Error\\Card')->disableOriginalConstructor()->getMock(); - $exceptionMock->expects($this->atLeastOnce()) - ->method('getJsonBody') - ->willReturn($bodyArr); - - $adapter = new Payment_Adapter_Stripe($this->defaultConfig); - $adapter->setDi($di); - - $this->setExpectedException('Exception', $bodyArr['error']['message']); - $adapter->logError($exceptionMock, $transactionModel); - } - public function testget_test_pub_key() { $config = $this->defaultConfig;