public function PayPalPaymentECPaymentMethodControllerTest::testdeleteAuthentication in PayPal for Payment 7
Tests deleteAuthentication().
@depends testsaveAuthentication @depends testloadAuthentication
File
- paypal_payment_ec/
tests/ PayPalPaymentECPaymentMethodControllerTest.test, line 62 - Contains \PayPalPaymentECPaymentMethodControllerTest.
Class
- PayPalPaymentECPaymentMethodControllerTest
- Tests payment execution.
Code
public function testdeleteAuthentication() {
$controller = payment_method_controller_load('PayPalPaymentECPaymentMethodController');
$token = new PayPalPaymentECAuthentication('foo', time(), 1);
$controller
->saveAuthentication($token);
$controller
->deleteAuthentication($token->pid);
$this
->assertEqual($controller
->loadAuthentication($token->pid), FALSE);
}