File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 ];
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments