Example #1
0
 function it_is_add_account_correct(AccountRepository $accountRepository, BankAccount $oBankAccount, Client $oClient)
 {
     $oBankAccountWrapped = $oBankAccount->getWrappedObject();
     $accountRepository->add($oBankAccountWrapped)->shouldBeCalled();
     $oBankAccount->setIdClient($oClient->getId());
     $this->beConstructedWith($accountRepository->getWrappedObject());
     $this->add($oClient->getWrappedObject(), $oBankAccountWrapped);
 }