Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Зуев Егор
/
wiki.dev
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Dan Brown
2017-04-22 14:08:12 +0100
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
82e2c523e6ad6810f34c4248c138fb14664c32f3
82e2c523
1 parent
a323b0d4
Fixed chapter breadcrumbs and testing issues
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
2 deletions
composer.json
database/factories/ModelFactory.php
resources/views/chapters/_breadcrumbs.blade.php
tests/BrowserKitTest.php
composer.json
View file @
82e2c52
...
...
@@ -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"
:
{
...
...
database/factories/ModelFactory.php
View file @
82e2c52
...
...
@@ -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
];
});
...
...
resources/views/chapters/_breadcrumbs.blade.php
View file @
82e2c52
<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
...
...
tests/BrowserKitTest.php
View file @
82e2c52
...
...
@@ -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.
*
...
...
Please
register
or
sign in
to post a comment