From 4d9858c1e15667fcb14a717ca714c733b82bacc9 Mon Sep 17 00:00:00 2001 From: Sean Fisher Date: Wed, 6 Sep 2023 17:12:56 -0400 Subject: [PATCH] Mirroring blocks and core factories --- database/factory/class-category-factory.php | 4 ++-- database/factory/class-post-factory.php | 4 ++-- database/factory/class-tag-factory.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/database/factory/class-category-factory.php b/database/factory/class-category-factory.php index e6f7162..1e0d59f 100644 --- a/database/factory/class-category-factory.php +++ b/database/factory/class-category-factory.php @@ -32,8 +32,8 @@ class Category_Factory extends \Mantle\Database\Factory\Term_Factory { */ public function definition(): array { return [ - 'name' => $this->faker->sentence, - 'description' => $this->faker->paragraph, + 'description' => trim( $this->faker->paragraph( 2 ) ), + 'name' => $this->faker->sentence(), 'taxonomy' => 'category', ]; } diff --git a/database/factory/class-post-factory.php b/database/factory/class-post-factory.php index a2b51eb..dab4425 100644 --- a/database/factory/class-post-factory.php +++ b/database/factory/class-post-factory.php @@ -32,8 +32,8 @@ class Post_Factory extends \Mantle\Database\Factory\Post_Factory { */ public function definition(): array { return [ - 'post_title' => $this->faker->sentence, - 'post_content' => $this->faker->paragraph, + 'post_title' => $this->faker->sentence(), + 'post_content' => trim( $this->faker->paragraph_blocks( 3 ) ), 'post_status' => 'publish', 'post_type' => 'post', ]; diff --git a/database/factory/class-tag-factory.php b/database/factory/class-tag-factory.php index ad03c63..0a975ed 100644 --- a/database/factory/class-tag-factory.php +++ b/database/factory/class-tag-factory.php @@ -32,8 +32,8 @@ class Tag_Factory extends \Mantle\Database\Factory\Term_Factory { */ public function definition(): array { return [ - 'name' => $this->faker->sentence, - 'description' => $this->faker->paragraph, + 'description' => trim( $this->faker->paragraph( 2 ) ), + 'name' => $this->faker->sentence(), 'taxonomy' => 'tag', ]; }