1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

Updated composer deps, applied latest StyleCI changes

This commit is contained in:
Dan Brown
2022-04-24 18:22:40 +01:00
parent 63cb6015a8
commit 2b0ae23da0
14 changed files with 182 additions and 186 deletions

View File

@@ -110,7 +110,7 @@ class BooksApiTest extends TestCase
DB::table('books')->where('id', '=', $book->id)->update(['updated_at' => Carbon::now()->subWeek()]);
$details = [
'tags' => [['name' => 'Category', 'value' => 'Testing']]
'tags' => [['name' => 'Category', 'value' => 'Testing']],
];
$this->putJson($this->baseEndpoint . "/{$book->id}", $details);

View File

@@ -156,7 +156,7 @@ class ChaptersApiTest extends TestCase
DB::table('chapters')->where('id', '=', $chapter->id)->update(['updated_at' => Carbon::now()->subWeek()]);
$details = [
'tags' => [['name' => 'Category', 'value' => 'Testing']]
'tags' => [['name' => 'Category', 'value' => 'Testing']],
];
$this->putJson($this->baseEndpoint . "/{$chapter->id}", $details);

View File

@@ -249,7 +249,7 @@ class PagesApiTest extends TestCase
DB::table('pages')->where('id', '=', $page->id)->update(['updated_at' => Carbon::now()->subWeek()]);
$details = [
'tags' => [['name' => 'Category', 'value' => 'Testing']]
'tags' => [['name' => 'Category', 'value' => 'Testing']],
];
$resp = $this->putJson($this->baseEndpoint . "/{$page->id}", $details);

View File

@@ -120,7 +120,7 @@ class ShelvesApiTest extends TestCase
DB::table('bookshelves')->where('id', '=', $shelf->id)->update(['updated_at' => Carbon::now()->subWeek()]);
$details = [
'tags' => [['name' => 'Category', 'value' => 'Testing']]
'tags' => [['name' => 'Category', 'value' => 'Testing']],
];
$this->putJson($this->baseEndpoint . "/{$shelf->id}", $details);

View File

@@ -128,7 +128,7 @@ class PageEditorTest extends TestCase
$resp = $this->asAdmin()->get($page->getUrl('/edit?editor=markdown-stable'));
$resp->assertStatus(200);
$resp->assertSee("<h2>A Header</h2><p>Some <strong>bold</strong> content.</p>", true);
$resp->assertSee('<h2>A Header</h2><p>Some <strong>bold</strong> content.</p>', true);
$resp->assertElementExists('[component="markdown-editor"]');
}
@@ -202,5 +202,4 @@ class PageEditorTest extends TestCase
$this->asEditor()->put($page->getUrl(), ['name' => $page->name, 'markdown' => '## Updated content abc']);
$this->assertEquals('wysiwyg', $page->refresh()->editor);
}
}

View File

@@ -3,8 +3,8 @@
namespace Tests;
use BookStack\Http\Request;
use function url;
use function request;
use function url;
class UrlTest extends TestCase
{