Dan Brown

Fixed chapter breadcrumbs and testing issues

......@@ -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
];
});
......
<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">&raquo;</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.
*
......