Skip to content

Commit 4d9858c

Browse files
committed
Mirroring blocks and core factories
1 parent 151769b commit 4d9858c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

database/factory/class-category-factory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ class Category_Factory extends \Mantle\Database\Factory\Term_Factory {
3232
*/
3333
public function definition(): array {
3434
return [
35-
'name' => $this->faker->sentence,
36-
'description' => $this->faker->paragraph,
35+
'description' => trim( $this->faker->paragraph( 2 ) ),
36+
'name' => $this->faker->sentence(),
3737
'taxonomy' => 'category',
3838
];
3939
}

database/factory/class-post-factory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ class Post_Factory extends \Mantle\Database\Factory\Post_Factory {
3232
*/
3333
public function definition(): array {
3434
return [
35-
'post_title' => $this->faker->sentence,
36-
'post_content' => $this->faker->paragraph,
35+
'post_title' => $this->faker->sentence(),
36+
'post_content' => trim( $this->faker->paragraph_blocks( 3 ) ),
3737
'post_status' => 'publish',
3838
'post_type' => 'post',
3939
];

database/factory/class-tag-factory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ class Tag_Factory extends \Mantle\Database\Factory\Term_Factory {
3232
*/
3333
public function definition(): array {
3434
return [
35-
'name' => $this->faker->sentence,
36-
'description' => $this->faker->paragraph,
35+
'description' => trim( $this->faker->paragraph( 2 ) ),
36+
'name' => $this->faker->sentence(),
3737
'taxonomy' => 'tag',
3838
];
3939
}

0 commit comments

Comments
 (0)