From f833f47ff0c0af42639dd4f632c0fc1ccabbfa07 Mon Sep 17 00:00:00 2001 From: Attila Fulop <1162360+fulopattila122@users.noreply.github.com> Date: Mon, 17 Jun 2024 12:57:32 +0300 Subject: [PATCH] Test case fix for real DB engines --- src/Order/Tests/BillpayerTest.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/Order/Tests/BillpayerTest.php b/src/Order/Tests/BillpayerTest.php index 612af22b..97c4fec1 100644 --- a/src/Order/Tests/BillpayerTest.php +++ b/src/Order/Tests/BillpayerTest.php @@ -14,11 +14,26 @@ namespace Vanilo\Order\Tests; +use Konekt\Address\Models\Country; use Vanilo\Order\Models\Billpayer; use Vanilo\Order\Tests\Dummies\Address; class BillpayerTest extends TestCase { + public function setUp(): void + { + parent::setUp(); + + Country::createOrFirst([ + 'id' => 'NL', + ], [ + 'name' => 'Netherlands', + 'phonecode' => 31, + 'is_eu_member' => 1 + ]); + } + + /** @test */ public function it_returns_proper_bool_types_when_the_model_is_empty() {