mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
Use Faker methods
Accessing Faker properties was deprecated in Faker 1.14.
This commit is contained in:
committed by
HolgerHatGarKeineNode
parent
5776b01d15
commit
e3c175e5fe
@@ -27,8 +27,8 @@ class BitcoinEventFactory extends Factory
|
|||||||
'from' => $this->faker->dateTime(),
|
'from' => $this->faker->dateTime(),
|
||||||
'to' => $this->faker->dateTime(),
|
'to' => $this->faker->dateTime(),
|
||||||
'title' => $this->faker->sentence(4),
|
'title' => $this->faker->sentence(4),
|
||||||
'description' => $this->faker->text,
|
'description' => $this->faker->text(),
|
||||||
'link' => $this->faker->word,
|
'link' => $this->faker->word(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,20 +23,20 @@ class BookCaseFactory extends Factory
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'title' => $this->faker->sentence(4),
|
'title' => $this->faker->sentence(4),
|
||||||
'lat' => $this->faker->latitude,
|
'lat' => $this->faker->latitude(),
|
||||||
'lon' => '{}',
|
'lon' => '{}',
|
||||||
'address' => $this->faker->text,
|
'address' => $this->faker->text(),
|
||||||
'type' => $this->faker->word,
|
'type' => $this->faker->word(),
|
||||||
'open' => $this->faker->word,
|
'open' => $this->faker->word(),
|
||||||
'comment' => $this->faker->text,
|
'comment' => $this->faker->text(),
|
||||||
'contact' => $this->faker->text,
|
'contact' => $this->faker->text(),
|
||||||
'bcz' => $this->faker->text,
|
'bcz' => $this->faker->text(),
|
||||||
'digital' => $this->faker->boolean,
|
'digital' => $this->faker->boolean(),
|
||||||
'icontype' => $this->faker->word,
|
'icontype' => $this->faker->word(),
|
||||||
'deactivated' => $this->faker->boolean,
|
'deactivated' => $this->faker->boolean(),
|
||||||
'deactreason' => $this->faker->word,
|
'deactreason' => $this->faker->word(),
|
||||||
'entrytype' => $this->faker->word,
|
'entrytype' => $this->faker->word(),
|
||||||
'homepage' => $this->faker->word,
|
'homepage' => $this->faker->word(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ class CategoryFactory extends Factory
|
|||||||
public function definition(): array
|
public function definition(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'name' => $this->faker->name,
|
'name' => $this->faker->name(),
|
||||||
'slug' => $this->faker->slug,
|
'slug' => $this->faker->slug(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,8 +24,8 @@ class CityFactory extends Factory
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'country_id' => Country::factory(),
|
'country_id' => Country::factory(),
|
||||||
'name' => $this->faker->name,
|
'name' => $this->faker->name(),
|
||||||
'slug' => $this->faker->slug,
|
'slug' => $this->faker->slug(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ class CountryFactory extends Factory
|
|||||||
public function definition(): array
|
public function definition(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'name' => $this->faker->name,
|
'name' => $this->faker->name(),
|
||||||
'code' => $this->faker->word,
|
'code' => $this->faker->word(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class CourseFactory extends Factory
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'lecturer_id' => Lecturer::factory(),
|
'lecturer_id' => Lecturer::factory(),
|
||||||
'name' => $this->faker->name,
|
'name' => $this->faker->name(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,9 +24,9 @@ class LecturerFactory extends Factory
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'team_id' => Team::factory(),
|
'team_id' => Team::factory(),
|
||||||
'name' => $this->faker->name,
|
'name' => $this->faker->name(),
|
||||||
'slug' => $this->faker->slug,
|
'slug' => $this->faker->slug(),
|
||||||
'active' => $this->faker->boolean,
|
'active' => $this->faker->boolean(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ class LibraryFactory extends Factory
|
|||||||
public function definition(): array
|
public function definition(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'name' => $this->faker->name,
|
'name' => $this->faker->name(),
|
||||||
'language_code' => $this->faker->word,
|
'language_code' => $this->faker->word(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ class LibraryItemsFactory extends Factory
|
|||||||
'lecturer_id' => Lecturer::factory(),
|
'lecturer_id' => Lecturer::factory(),
|
||||||
'library_id' => Library::factory(),
|
'library_id' => Library::factory(),
|
||||||
'order_column' => $this->faker->randomNumber(),
|
'order_column' => $this->faker->randomNumber(),
|
||||||
'type' => $this->faker->word,
|
'type' => $this->faker->word(),
|
||||||
'value' => $this->faker->text,
|
'value' => $this->faker->text(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,9 +27,9 @@ class MeetupEventFactory extends Factory
|
|||||||
'date' => $this->faker->date(),
|
'date' => $this->faker->date(),
|
||||||
'start' => $this->faker->time(),
|
'start' => $this->faker->time(),
|
||||||
'end' => $this->faker->time(),
|
'end' => $this->faker->time(),
|
||||||
'location' => $this->faker->word,
|
'location' => $this->faker->word(),
|
||||||
'description' => $this->faker->text,
|
'description' => $this->faker->text(),
|
||||||
'link' => $this->faker->word,
|
'link' => $this->faker->word(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,8 +24,8 @@ class MeetupFactory extends Factory
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'city_id' => City::factory(),
|
'city_id' => City::factory(),
|
||||||
'name' => $this->faker->name,
|
'name' => $this->faker->name(),
|
||||||
'link' => $this->faker->word,
|
'link' => $this->faker->word(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ class ParticipantFactory extends Factory
|
|||||||
public function definition(): array
|
public function definition(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'first_name' => $this->faker->firstName,
|
'first_name' => $this->faker->firstName(),
|
||||||
'last_name' => $this->faker->lastName,
|
'last_name' => $this->faker->lastName(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class PodcastFactory extends Factory
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'title' => $this->faker->sentence(4),
|
'title' => $this->faker->sentence(4),
|
||||||
'link' => $this->faker->word,
|
'link' => $this->faker->word(),
|
||||||
'data' => '{}',
|
'data' => '{}',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ class RegistrationFactory extends Factory
|
|||||||
return [
|
return [
|
||||||
'event_id' => CourseEvent::factory(),
|
'event_id' => CourseEvent::factory(),
|
||||||
'participant_id' => Participant::factory(),
|
'participant_id' => Participant::factory(),
|
||||||
'active' => $this->faker->boolean,
|
'active' => $this->faker->boolean(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,9 +24,9 @@ class VenueFactory extends Factory
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'city_id' => City::factory(),
|
'city_id' => City::factory(),
|
||||||
'name' => $this->faker->name,
|
'name' => $this->faker->name(),
|
||||||
'slug' => $this->faker->slug,
|
'slug' => $this->faker->slug(),
|
||||||
'street' => $this->faker->streetName,
|
'street' => $this->faker->streetName(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user