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