From 1632e28ebb773fba8e6fd14e567c88cbdea568bf Mon Sep 17 00:00:00 2001 From: Maxim Babichev Date: Wed, 13 Sep 2023 19:57:11 +0300 Subject: [PATCH] checking the Wallet class extensibility --- tests/Infra/PackageModels/MyWallet.php | 13 +++++++++++ tests/Units/Expand/WalletTest.php | 31 ++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 tests/Infra/PackageModels/MyWallet.php create mode 100644 tests/Units/Expand/WalletTest.php diff --git a/tests/Infra/PackageModels/MyWallet.php b/tests/Infra/PackageModels/MyWallet.php new file mode 100644 index 000000000..39fd8e33f --- /dev/null +++ b/tests/Infra/PackageModels/MyWallet.php @@ -0,0 +1,13 @@ + MyWallet::class, + ]); + + /** @var Buyer $buyer */ + $buyer = BuyerFactory::new()->create(); + + /** @var MyWallet $wallet */ + $wallet = $buyer->wallet; + + self::assertSame('hello world', $wallet->helloWorld()); + } +}