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', '');
@@ -273,7 +274,7 @@ class ExportTest extends TestCase
{
$page = Page::query()->first()->forceFill([
'markdown' => '# A header',
- 'html' => '
Some bold text
", + 'html' => 'Some bold text
', ]); $page->save(); @@ -298,7 +299,7 @@ class ExportTest extends TestCase { $page = Page::query()->first()->forceFill([ 'markdown' => '', - 'html' => "Some callout text
Another line
", + 'html' => 'Some callout text
Another line
', ]); $page->save(); @@ -310,7 +311,7 @@ class ExportTest extends TestCase { $page = Page::query()->first()->forceFill([ 'markdown' => '', - 'html' => 'var a = \'cat\';
Another line
', + 'html' => 'var a = \'cat\';
Another line
', ]); $page->save(); @@ -339,5 +340,4 @@ class ExportTest extends TestCase $resp->assertSee('# ' . $chapter->name); $resp->assertSee('# ' . $page->name); } - }