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:
@@ -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');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user