Use Faker methods

Accessing Faker properties was deprecated in Faker 1.14.
This commit is contained in:
Shift
2023-02-19 16:19:02 +00:00
committed by HolgerHatGarKeineNode
parent 5776b01d15
commit e3c175e5fe
15 changed files with 41 additions and 41 deletions

View File

@@ -27,8 +27,8 @@ class BitcoinEventFactory extends Factory
'from' => $this->faker->dateTime(),
'to' => $this->faker->dateTime(),
'title' => $this->faker->sentence(4),
'description' => $this->faker->text,
'link' => $this->faker->word,
'description' => $this->faker->text(),
'link' => $this->faker->word(),
];
}
}

View File

@@ -23,20 +23,20 @@ class BookCaseFactory extends Factory
{
return [
'title' => $this->faker->sentence(4),
'lat' => $this->faker->latitude,
'lat' => $this->faker->latitude(),
'lon' => '{}',
'address' => $this->faker->text,
'type' => $this->faker->word,
'open' => $this->faker->word,
'comment' => $this->faker->text,
'contact' => $this->faker->text,
'bcz' => $this->faker->text,
'digital' => $this->faker->boolean,
'icontype' => $this->faker->word,
'deactivated' => $this->faker->boolean,
'deactreason' => $this->faker->word,
'entrytype' => $this->faker->word,
'homepage' => $this->faker->word,
'address' => $this->faker->text(),
'type' => $this->faker->word(),
'open' => $this->faker->word(),
'comment' => $this->faker->text(),
'contact' => $this->faker->text(),
'bcz' => $this->faker->text(),
'digital' => $this->faker->boolean(),
'icontype' => $this->faker->word(),
'deactivated' => $this->faker->boolean(),
'deactreason' => $this->faker->word(),
'entrytype' => $this->faker->word(),
'homepage' => $this->faker->word(),
];
}
}

View File

@@ -22,8 +22,8 @@ class CategoryFactory extends Factory
public function definition(): array
{
return [
'name' => $this->faker->name,
'slug' => $this->faker->slug,
'name' => $this->faker->name(),
'slug' => $this->faker->slug(),
];
}
}

View File

@@ -24,8 +24,8 @@ class CityFactory extends Factory
{
return [
'country_id' => Country::factory(),
'name' => $this->faker->name,
'slug' => $this->faker->slug,
'name' => $this->faker->name(),
'slug' => $this->faker->slug(),
];
}
}

View File

@@ -22,8 +22,8 @@ class CountryFactory extends Factory
public function definition(): array
{
return [
'name' => $this->faker->name,
'code' => $this->faker->word,
'name' => $this->faker->name(),
'code' => $this->faker->word(),
];
}
}

View File

@@ -24,7 +24,7 @@ class CourseFactory extends Factory
{
return [
'lecturer_id' => Lecturer::factory(),
'name' => $this->faker->name,
'name' => $this->faker->name(),
];
}
}

View File

@@ -24,9 +24,9 @@ class LecturerFactory extends Factory
{
return [
'team_id' => Team::factory(),
'name' => $this->faker->name,
'slug' => $this->faker->slug,
'active' => $this->faker->boolean,
'name' => $this->faker->name(),
'slug' => $this->faker->slug(),
'active' => $this->faker->boolean(),
];
}
}

View File

@@ -22,8 +22,8 @@ class LibraryFactory extends Factory
public function definition(): array
{
return [
'name' => $this->faker->name,
'language_code' => $this->faker->word,
'name' => $this->faker->name(),
'language_code' => $this->faker->word(),
];
}
}

View File

@@ -27,8 +27,8 @@ class LibraryItemsFactory extends Factory
'lecturer_id' => Lecturer::factory(),
'library_id' => Library::factory(),
'order_column' => $this->faker->randomNumber(),
'type' => $this->faker->word,
'value' => $this->faker->text,
'type' => $this->faker->word(),
'value' => $this->faker->text(),
];
}
}

View File

@@ -27,9 +27,9 @@ class MeetupEventFactory extends Factory
'date' => $this->faker->date(),
'start' => $this->faker->time(),
'end' => $this->faker->time(),
'location' => $this->faker->word,
'description' => $this->faker->text,
'link' => $this->faker->word,
'location' => $this->faker->word(),
'description' => $this->faker->text(),
'link' => $this->faker->word(),
];
}
}

View File

@@ -24,8 +24,8 @@ class MeetupFactory extends Factory
{
return [
'city_id' => City::factory(),
'name' => $this->faker->name,
'link' => $this->faker->word,
'name' => $this->faker->name(),
'link' => $this->faker->word(),
];
}
}

View File

@@ -22,8 +22,8 @@ class ParticipantFactory extends Factory
public function definition(): array
{
return [
'first_name' => $this->faker->firstName,
'last_name' => $this->faker->lastName,
'first_name' => $this->faker->firstName(),
'last_name' => $this->faker->lastName(),
];
}
}

View File

@@ -23,7 +23,7 @@ class PodcastFactory extends Factory
{
return [
'title' => $this->faker->sentence(4),
'link' => $this->faker->word,
'link' => $this->faker->word(),
'data' => '{}',
];
}

View File

@@ -26,7 +26,7 @@ class RegistrationFactory extends Factory
return [
'event_id' => CourseEvent::factory(),
'participant_id' => Participant::factory(),
'active' => $this->faker->boolean,
'active' => $this->faker->boolean(),
];
}
}

View File

@@ -24,9 +24,9 @@ class VenueFactory extends Factory
{
return [
'city_id' => City::factory(),
'name' => $this->faker->name,
'slug' => $this->faker->slug,
'street' => $this->faker->streetName,
'name' => $this->faker->name(),
'slug' => $this->faker->slug(),
'street' => $this->faker->streetName(),
];
}
}