fix payments
This commit is contained in:
@@ -11,9 +11,14 @@ class PaymentModelMetadataTest extends CIUnitTestCase
|
||||
{
|
||||
$model = new PaymentModel();
|
||||
$fields = self::getPrivateProperty($model, 'allowedFields');
|
||||
$columns = self::getPrivateProperty($model, 'paymentColumns');
|
||||
|
||||
$this->assertContains('installment_seq', $fields);
|
||||
$this->assertContains('transaction_id', $fields);
|
||||
$this->assertContains('check_file', $fields);
|
||||
foreach (['installment_seq', 'transaction_id', 'check_file'] as $field) {
|
||||
if (in_array($field, $columns, true)) {
|
||||
$this->assertContains($field, $fields);
|
||||
} else {
|
||||
$this->assertNotContains($field, $fields);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user