]> BookStack Code Mirror - bookstack/blobdiff - database/factories/Entities/Models/BookshelfFactory.php
Input WYSIWYG: Updated tests, Added simple html limiting
[bookstack] / database / factories / Entities / Models / BookshelfFactory.php
index 66dd1c111851419004761b24dc9377e2cf8c0dd6..edbefc3e797b721c50ebd90b38a7acfc088f1209 100644 (file)
@@ -21,10 +21,12 @@ class BookshelfFactory extends Factory
      */
     public function definition()
     {
+        $description = $this->faker->paragraph();
         return [
             'name'        => $this->faker->sentence,
             'slug'        => Str::random(10),
-            'description' => $this->faker->paragraph,
+            'description' => $description,
+            'description_html' => '<p>' . e($description) . '</p>'
         ];
     }
 }