From ad9eef63935840a58245e773849522053dbbf521 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Thu, 2 Mar 2023 13:41:52 -0800 Subject: [PATCH] Update deprecated faker calls in Asset and Supplier factories --- database/factories/AssetFactory.php | 2 +- database/factories/SupplierFactory.php | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/database/factories/AssetFactory.php b/database/factories/AssetFactory.php index b2c02f6dae..6b77b8b078 100644 --- a/database/factories/AssetFactory.php +++ b/database/factories/AssetFactory.php @@ -39,7 +39,7 @@ class AssetFactory extends Factory return [ 'name' => null, 'rtd_location_id' => Location::factory(), - 'serial' => $this->faker->uuid, + 'serial' => $this->faker->uuid(), 'status_id' => 1, 'user_id' => 1, 'asset_tag' => $this->faker->unixTime('now'), diff --git a/database/factories/SupplierFactory.php b/database/factories/SupplierFactory.php index 344dfe7d5b..47ec2ceee8 100644 --- a/database/factories/SupplierFactory.php +++ b/database/factories/SupplierFactory.php @@ -39,18 +39,18 @@ class SupplierFactory extends Factory public function definition() { return [ - 'name' => $this->faker->company, - 'address' => $this->faker->streetAddress, - 'address2' => $this->faker->secondaryAddress, - 'city' => $this->faker->city, - 'state' => $this->faker->stateAbbr, - 'zip' => $this->faker->postCode, - 'country' => $this->faker->countryCode, - 'contact' => $this->faker->name, - 'phone' => $this->faker->phoneNumber, - 'fax' => $this->faker->phoneNumber, - 'email' => $this->faker->safeEmail, - 'url' => $this->faker->url, + 'name' => $this->faker->company(), + 'address' => $this->faker->streetAddress(), + 'address2' => $this->faker->secondaryAddress(), + 'city' => $this->faker->city(), + 'state' => $this->faker->stateAbbr(), + 'zip' => $this->faker->postCode(), + 'country' => $this->faker->countryCode(), + 'contact' => $this->faker->name(), + 'phone' => $this->faker->phoneNumber(), + 'fax' => $this->faker->phoneNumber(), + 'email' => $this->faker->safeEmail(), + 'url' => $this->faker->url(), 'notes' => $this->faker->text(191), // Supplier notes can be a max of 255 characters. ]; }