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,13 +1,13 @@
<?php namespace Tests;
<?php
namespace Tests;
use BookStack\Auth\Role;
use BookStack\Auth\User;
use BookStack\Entities\Models\Bookshelf;
use BookStack\Entities\Models\Page;
class HomepageTest extends TestCase
{
public function test_default_homepage_visible()
{
$this->asEditor();
@@ -42,8 +42,8 @@ class HomepageTest extends TestCase
$content = str_repeat('This is the body content of my custom homepage.', 20);
$customPage = $this->newPage(['name' => $name, 'html' => $content]);
$this->setSettings([
'app-homepage' => $customPage->id,
'app-homepage-type' => 'page'
'app-homepage' => $customPage->id,
'app-homepage-type' => 'page',
]);
$homeVisit = $this->get('/');
@@ -68,8 +68,8 @@ class HomepageTest extends TestCase
$content = str_repeat('This is the body content of my custom homepage.', 20);
$customPage = $this->newPage(['name' => $name, 'html' => $content]);
$this->setSettings([
'app-homepage' => $customPage->id,
'app-homepage-type' => 'default'
'app-homepage' => $customPage->id,
'app-homepage-type' => 'default',
]);
$pageDeleteReq = $this->delete($customPage->getUrl());