Skip to content

Commit

Permalink
Mirroring blocks and core factories
Browse files Browse the repository at this point in the history
  • Loading branch information
srtfisher committed Sep 6, 2023
1 parent 151769b commit 4d9858c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions database/factory/class-category-factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
];
}
Expand Down
4 changes: 2 additions & 2 deletions database/factory/class-post-factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ),

Check failure on line 36 in database/factory/class-post-factory.php

View workflow job for this annotation

GitHub Actions / phpstan / phpstan PHP 8.2

Call to an undefined method Faker\Generator::paragraph_blocks().

Check failure on line 36 in database/factory/class-post-factory.php

View workflow job for this annotation

GitHub Actions / phpstan / phpstan PHP 8.2

Call to an undefined method Faker\Generator::paragraph_blocks().

Check failure on line 36 in database/factory/class-post-factory.php

View workflow job for this annotation

GitHub Actions / phpstan / phpstan PHP 8.2

Call to an undefined method Faker\Generator::paragraph_blocks().

Check failure on line 36 in database/factory/class-post-factory.php

View workflow job for this annotation

GitHub Actions / phpstan / phpstan PHP 8.2

Call to an undefined method Faker\Generator::paragraph_blocks().

Check failure on line 36 in database/factory/class-post-factory.php

View workflow job for this annotation

GitHub Actions / phpstan / phpstan PHP 8.2

Call to an undefined method Faker\Generator::paragraph_blocks().

Check failure on line 36 in database/factory/class-post-factory.php

View workflow job for this annotation

GitHub Actions / phpstan / phpstan PHP 8.2

Call to an undefined method Faker\Generator::paragraph_blocks().
'post_status' => 'publish',
'post_type' => 'post',
];
Expand Down
4 changes: 2 additions & 2 deletions database/factory/class-tag-factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
];
}
Expand Down

0 comments on commit 4d9858c

Please sign in to comment.