1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2026-01-03 23:42:28 +03:00

Apply fixes from StyleCI

This commit is contained in:
Dan Brown
2021-06-26 15:23:15 +00:00
committed by StyleCI Bot
parent 3a402f6adc
commit 934a833818
349 changed files with 3655 additions and 2625 deletions

View File

@@ -1,4 +1,6 @@
<?php namespace Tests\Entity;
<?php
namespace Tests\Entity;
use BookStack\Entities\Models\Page;
use Tests\TestCase;
@@ -27,14 +29,14 @@ class PageTemplateTest extends TestCase
$this->actingAs($editor);
$pageUpdateData = [
'name' => $page->name,
'html' => $page->html,
'name' => $page->name,
'html' => $page->html,
'template' => 'true',
];
$this->put($page->getUrl(), $pageUpdateData);
$this->assertDatabaseHas('pages', [
'id' => $page->id,
'id' => $page->id,
'template' => false,
]);
@@ -42,7 +44,7 @@ class PageTemplateTest extends TestCase
$this->put($page->getUrl(), $pageUpdateData);
$this->assertDatabaseHas('pages', [
'id' => $page->id,
'id' => $page->id,
'template' => true,
]);
}
@@ -64,7 +66,7 @@ class PageTemplateTest extends TestCase
$templateFetch = $this->get('/templates/' . $page->id);
$templateFetch->assertStatus(200);
$templateFetch->assertJson([
'html' => $content,
'html' => $content,
'markdown' => '',
]);
}
@@ -86,5 +88,4 @@ class PageTemplateTest extends TestCase
$templatesFetch->assertSee($page->name);
$templatesFetch->assertSee('pagination');
}
}
}