Skip to content

Commit 945009d

Browse files
author
Marcel Schmäing
committed
Merge pull request #2953 in SW/shopware from sw-12505/5.0/fix-debit-payment-validation to 5.0
* commit '262ac8d1300c80995a8becd458c2e215e4946172': SW-12505 - Fix debut validation
2 parents 7ed18cd + 262ac8d commit 945009d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

engine/Shopware/Plugins/Default/Core/PaymentMethods/Components/DebitPaymentMethod.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function validate($paymentData)
6767
"sErrorMessages" => $sErrorMessages
6868
);
6969
} else {
70-
return true;
70+
return array();
7171
}
7272
}
7373

tests/Shopware/Tests/Plugins/Core/PaymentMethods/Components/DebitPaymentMethodTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function testValidateCorrectData()
111111
];
112112

113113
$validationResult = self::$debitPaymentMethod->validate($data);
114-
$this->assertTrue($validationResult);
114+
$this->assertEmpty($validationResult);
115115
}
116116

117117
public function testCreatePaymentInstanceWithNoPaymentData()

0 commit comments

Comments
 (0)