X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/3a402f6adc78fa939d898369e425088fed141544..934a833818b77e51f83d21a22478aea36ae9a294:/tests/Entity/ExportTest.php diff --git a/tests/Entity/ExportTest.php b/tests/Entity/ExportTest.php index f437904e8..4c6fb1a74 100644 --- a/tests/Entity/ExportTest.php +++ b/tests/Entity/ExportTest.php @@ -1,4 +1,6 @@ -first(); @@ -133,7 +134,7 @@ class ExportTest extends TestCase { $page = Page::query()->first(); - $customHeadContent = ""; + $customHeadContent = ''; $this->setSettings(['app-custom-head' => $customHeadContent]); $resp = $this->asEditor()->get($page->getUrl('/export/html')); @@ -144,7 +145,7 @@ class ExportTest extends TestCase { $page = Page::query()->first(); - $customHeadContent = ""; + $customHeadContent = ''; $this->setSettings(['app-custom-head' => $customHeadContent]); $resp = $this->asEditor()->get($page->getUrl('/export/html')); @@ -209,8 +210,8 @@ class ExportTest extends TestCase { $page = Page::query()->first(); $page->html = '' - .'' - .''; + . '' + . ''; $storageDisk = Storage::disk('local'); $storageDisk->makeDirectory('uploads/images/gallery'); $storageDisk->put('uploads/images/gallery/svg_test.svg', 'good'); @@ -273,7 +274,7 @@ class ExportTest extends TestCase { $page = Page::query()->first()->forceFill([ 'markdown' => '# A header', - 'html' => '

Dogcat

', + 'html' => '

Dogcat

', ]); $page->save(); @@ -286,7 +287,7 @@ class ExportTest extends TestCase { $page = Page::query()->first()->forceFill([ 'markdown' => '', - 'html' => "

Dogcat

Some bold text

", + 'html' => '

Dogcat

Some bold text

', ]); $page->save(); @@ -298,7 +299,7 @@ class ExportTest extends TestCase { $page = Page::query()->first()->forceFill([ 'markdown' => '', - 'html' => "

Dogcat

Some callout text

Another line

", + 'html' => '

Dogcat

Some callout text

Another line

', ]); $page->save(); @@ -310,7 +311,7 @@ class ExportTest extends TestCase { $page = Page::query()->first()->forceFill([ 'markdown' => '', - 'html' => '

Dogcat

'."\r\n".'
var a = \'cat\';

Another line

', + 'html' => '

Dogcat

' . "\r\n" . '
var a = \'cat\';

Another line

', ]); $page->save(); @@ -339,5 +340,4 @@ class ExportTest extends TestCase $resp->assertSee('# ' . $chapter->name); $resp->assertSee('# ' . $page->name); } - }