FrontAccountingERP / FA

Official FrontAccounting mirror repository
93 stars 95 forks source link

unstable: bank transfer unit tests failing #6

Closed cambell-prince closed 5 years ago

cambell-prince commented 8 years ago

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

2) 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

3) 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

4) 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.