From: Dan Brown Date: Sat, 22 Apr 2017 13:08:12 +0000 (+0100) Subject: Fixed chapter breadcrumbs and testing issues X-Git-Tag: v0.16.0~1^2~3 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/82e2c523e6ad6810f34c4248c138fb14664c32f3 Fixed chapter breadcrumbs and testing issues --- diff --git a/composer.json b/composer.json index 396a9babd..2381c534b 100644 --- a/composer.json +++ b/composer.json @@ -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": { diff --git a/database/factories/ModelFactory.php b/database/factories/ModelFactory.php index 43e214386..ebf78d1fa 100644 --- a/database/factories/ModelFactory.php +++ b/database/factories/ModelFactory.php @@ -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 ]; }); diff --git a/resources/views/chapters/_breadcrumbs.blade.php b/resources/views/chapters/_breadcrumbs.blade.php index 1e090759a..418168461 100644 --- a/resources/views/chapters/_breadcrumbs.blade.php +++ b/resources/views/chapters/_breadcrumbs.blade.php @@ -1,5 +1,5 @@