From 81d931b269827b3b5d963844b6b620ae957681e9 Mon Sep 17 00:00:00 2001 From: MichaelTichy222 <74977283+MichaelTichy222@users.noreply.github.com> Date: Mon, 8 Feb 2021 21:27:12 +0100 Subject: [PATCH] Add VUB_BANK back to SwiftCode constants (#80) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add VUB_BANK back to SwiftCode constants "Všeobecná úverová banka" with key SUBASKBX is still in offical gopay documentation and works just fine https://doc.gopay.com/cs/#swift --- src/Api/Lists/SwiftCode.php | 2 ++ tests/cases/unit/Api/Lists/SwiftCode.phpt | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Api/Lists/SwiftCode.php b/src/Api/Lists/SwiftCode.php index 6a1ac9d..2822779 100644 --- a/src/Api/Lists/SwiftCode.php +++ b/src/Api/Lists/SwiftCode.php @@ -22,6 +22,7 @@ class SwiftCode public const SLOVENSKA_SPORITELNA = 'GIBASKBX'; public const TATRA_BANKA = 'TATRSKBX'; public const UNICREDIT_BANK_SK = 'UNCRSKBX'; + public const VUB_BANK = 'SUBASKBX'; /** * @return string[] @@ -58,6 +59,7 @@ public static function sk(): array self::SLOVENSKA_SPORITELNA, self::TATRA_BANKA, self::UNICREDIT_BANK_SK, + self::VUB_BANK, ]; } diff --git a/tests/cases/unit/Api/Lists/SwiftCode.phpt b/tests/cases/unit/Api/Lists/SwiftCode.phpt index a048b83..cf5b516 100644 --- a/tests/cases/unit/Api/Lists/SwiftCode.phpt +++ b/tests/cases/unit/Api/Lists/SwiftCode.phpt @@ -11,7 +11,7 @@ require __DIR__ . '/../../../../bootstrap.php'; // All test(function (): void { - Assert::count(13, SwiftCode::all()); + Assert::count(14, SwiftCode::all()); }); // CZ @@ -21,5 +21,5 @@ test(function (): void { // SK test(function (): void { - Assert::count(4, SwiftCode::sk()); + Assert::count(5, SwiftCode::sk()); });