FrontAccountingERP/FA

unstable: bank transfer unit tests failing

Closed this issue · 0 comments

I'm getting the following unit test failures on the unstable implementation of the bank transfer and bank transfer edit feature.

See #5 for the test code.

  1. GLBankTransferTest::testCheckBankTransfer_TwoTransfersEditFirstTooLittle_Fails
    Failed asserting that -30 matches expected -20.

/shared/src/sgw/frontaccounting/modules/tests/php/GLBankTransfer_Test.php:152

  1. GLBankTransferTest::testCheckBankTransfer_TwoTransfersEditFirstJustRight_Succeeds
    Failed asserting that Array &0 (
    0 => '-30'
    'amount' => -30
    1 => '2014-02-13'
    'trans_date' => '2014-02-13'
    'account' => '2'
    'bank_account_name' => 'Petty Cash account'
    ) is null.

/shared/src/sgw/frontaccounting/modules/tests/php/GLBankTransfer_Test.php:231

  1. GLBankTransferTest::testCheckBankTransfer_TwoTransfersMoveSecondBeforeFirst_Fails
    Failed asserting that two strings are equal.
    --- Expected
    +++ Actual
    @@ @@
    -'2014-02-01'
    +'2014-02-02'

/shared/src/sgw/frontaccounting/modules/tests/php/GLBankTransfer_Test.php:309

  1. GLBankTransferTest::testCheckBankTransfer_TwoTransfersEditFirstLower_Succeeds
    Failed asserting that Array &0 (
    0 => '-30'
    'amount' => -30
    1 => '2014-02-13'
    'trans_date' => '2014-02-13'
    'account' => '2'
    'bank_account_name' => 'Petty Cash account'
    ) is null.

/shared/src/sgw/frontaccounting/modules/tests/php/GLBankTransfer_Test.php:346

FAILURES!
Tests: 7, Assertions: 28, Failures: 4.