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:
@@ -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);
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -3,8 +3,8 @@
|
||||
namespace Tests;
|
||||
|
||||
use BookStack\Http\Request;
|
||||
use function url;
|
||||
use function request;
|
||||
use function url;
|
||||
|
||||
class UrlTest extends TestCase
|
||||
{
|
||||
|
Reference in New Issue
Block a user