From f01649b2e18c662a63a38315e8e403fdb2db5a4d Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 17 Jul 2020 15:48:46 +0400 Subject: Added get credit entity utility Signed-off-by: Valentin Popov --- tests/Utilities/GetCreditEntityUtility.php | 39 ++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 tests/Utilities/GetCreditEntityUtility.php (limited to 'tests/Utilities') diff --git a/tests/Utilities/GetCreditEntityUtility.php b/tests/Utilities/GetCreditEntityUtility.php new file mode 100644 index 0000000..f46b176 --- /dev/null +++ b/tests/Utilities/GetCreditEntityUtility.php @@ -0,0 +1,39 @@ + + * @license http://www.apache.org/licenses/LICENSE-2.0 + * @package Tests\Utilities + */ +final class GetCreditEntityUtility { + public static function get(): CreditEntity { + $faker = Faker::create(); + + return CreditEntity::create([ + 'name' => $faker->unique()->sha256, + 'type' => $faker->unique()->sha256, + ]); + } +} -- cgit v1.2.3