Exemple #1
0
 /** @depends test_it_can_create_a_mandate */
 function test_it_can_cancel_a_mandate(Mandate $mandate)
 {
     $mandate = $this->api->cancelMandate($mandate->getId());
     $this->assertTrue($mandate->isCancelled());
     $this->assertNull($mandate->getNextPossibleChargeDate());
     return $mandate;
 }