]> BookStack Code Mirror - bookstack/blobdiff - tests/Entity/ExportTest.php
Update settings.php
[bookstack] / tests / Entity / ExportTest.php
index e3a74f64d1d2c306df662071b369beadfd9bfbac..5a94adac91c4b8d8dc46866f897e45f7057c3808 100644 (file)
@@ -1,9 +1,11 @@
-<?php namespace Tests;
+<?php namespace Tests\Entity;
 
 
 use BookStack\Entities\Chapter;
 use BookStack\Entities\Page;
 use BookStack\Uploads\HttpFetcher;
+use Illuminate\Support\Str;
+use Tests\TestCase;
 
 class ExportTest extends TestCase
 {
@@ -79,7 +81,7 @@ class ExportTest extends TestCase
 
     public function test_book_html_export_shows_chapter_descriptions()
     {
-        $chapterDesc = 'My custom test chapter description ' . str_random(12);
+        $chapterDesc = 'My custom test chapter description ' . Str::random(12);
         $chapter = Chapter::query()->first();
         $chapter->description = $chapterDesc;
         $chapter->save();