mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Update deprecated faker calls in Asset and Supplier factories
This commit is contained in:
parent
c3cc20fe0c
commit
ad9eef6393
|
@ -39,7 +39,7 @@ class AssetFactory extends Factory
|
||||||
return [
|
return [
|
||||||
'name' => null,
|
'name' => null,
|
||||||
'rtd_location_id' => Location::factory(),
|
'rtd_location_id' => Location::factory(),
|
||||||
'serial' => $this->faker->uuid,
|
'serial' => $this->faker->uuid(),
|
||||||
'status_id' => 1,
|
'status_id' => 1,
|
||||||
'user_id' => 1,
|
'user_id' => 1,
|
||||||
'asset_tag' => $this->faker->unixTime('now'),
|
'asset_tag' => $this->faker->unixTime('now'),
|
||||||
|
|
|
@ -39,18 +39,18 @@ class SupplierFactory extends Factory
|
||||||
public function definition()
|
public function definition()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'name' => $this->faker->company,
|
'name' => $this->faker->company(),
|
||||||
'address' => $this->faker->streetAddress,
|
'address' => $this->faker->streetAddress(),
|
||||||
'address2' => $this->faker->secondaryAddress,
|
'address2' => $this->faker->secondaryAddress(),
|
||||||
'city' => $this->faker->city,
|
'city' => $this->faker->city(),
|
||||||
'state' => $this->faker->stateAbbr,
|
'state' => $this->faker->stateAbbr(),
|
||||||
'zip' => $this->faker->postCode,
|
'zip' => $this->faker->postCode(),
|
||||||
'country' => $this->faker->countryCode,
|
'country' => $this->faker->countryCode(),
|
||||||
'contact' => $this->faker->name,
|
'contact' => $this->faker->name(),
|
||||||
'phone' => $this->faker->phoneNumber,
|
'phone' => $this->faker->phoneNumber(),
|
||||||
'fax' => $this->faker->phoneNumber,
|
'fax' => $this->faker->phoneNumber(),
|
||||||
'email' => $this->faker->safeEmail,
|
'email' => $this->faker->safeEmail(),
|
||||||
'url' => $this->faker->url,
|
'url' => $this->faker->url(),
|
||||||
'notes' => $this->faker->text(191), // Supplier notes can be a max of 255 characters.
|
'notes' => $this->faker->text(191), // Supplier notes can be a max of 255 characters.
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue