mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-17 08:49:00 +08:00
Fixed chapter breadcrumbs and testing issues
This commit is contained in:
parent
a323b0d49c
commit
82e2c523e6
@ -64,6 +64,10 @@
|
|||||||
"post-update-cmd": [
|
"post-update-cmd": [
|
||||||
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
|
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
|
||||||
"php artisan optimize"
|
"php artisan optimize"
|
||||||
|
],
|
||||||
|
"refresh-test-database": [
|
||||||
|
"php artisan migrate:refresh --database=mysql_testing",
|
||||||
|
"php artisan db:seed --class=DummyContentSeeder --database=mysql_testing"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
|
@ -43,7 +43,8 @@ $factory->define(BookStack\Page::class, function ($faker) {
|
|||||||
'name' => $faker->sentence,
|
'name' => $faker->sentence,
|
||||||
'slug' => str_random(10),
|
'slug' => str_random(10),
|
||||||
'html' => $html,
|
'html' => $html,
|
||||||
'text' => strip_tags($html)
|
'text' => strip_tags($html),
|
||||||
|
'revision_count' => 1
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<div class="breadcrumbs">
|
<div class="breadcrumbs">
|
||||||
@if (userCan('view', $book))
|
@if (userCan('view', $chapter->book))
|
||||||
<a href="{{ $chapter->book->getUrl() }}" class="text-book text-button"><i class="zmdi zmdi-book"></i>{{ $chapter->book->getShortName() }}</a>
|
<a href="{{ $chapter->book->getUrl() }}" class="text-book text-button"><i class="zmdi zmdi-book"></i>{{ $chapter->book->getShortName() }}</a>
|
||||||
<span class="sep">»</span>
|
<span class="sep">»</span>
|
||||||
@endif
|
@endif
|
||||||
|
@ -22,6 +22,12 @@ abstract class BrowserKitTest extends TestCase
|
|||||||
private $admin;
|
private $admin;
|
||||||
private $editor;
|
private $editor;
|
||||||
|
|
||||||
|
public function tearDown()
|
||||||
|
{
|
||||||
|
\DB::disconnect('mysql_testing');
|
||||||
|
parent::tearDown();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates the application.
|
* Creates the application.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user