Merge branch 'fixes' of git://github.com/imanghafoori1/BookStack into imanghafoori1-fixes

This commit is contained in:
Dan Brown 2020-10-31 22:11:27 +00:00
commit 474770af51
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
7 changed files with 6 additions and 8 deletions

View File

@ -3,11 +3,8 @@
use BookStack\Auth\Permissions; use BookStack\Auth\Permissions;
use BookStack\Auth\Role; use BookStack\Auth\Role;
use BookStack\Entities\Book; use BookStack\Entities\Book;
use BookStack\Entities\Bookshelf;
use BookStack\Entities\Chapter;
use BookStack\Entities\Entity; use BookStack\Entities\Entity;
use BookStack\Entities\EntityProvider; use BookStack\Entities\EntityProvider;
use BookStack\Entities\Page;
use BookStack\Ownable; use BookStack\Ownable;
use Illuminate\Database\Connection; use Illuminate\Database\Connection;
use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Builder;

View File

@ -3,7 +3,7 @@
use BookStack\Entities\Page; use BookStack\Entities\Page;
use BookStack\Exceptions\ImageUploadException; use BookStack\Exceptions\ImageUploadException;
use BookStack\Http\Controllers\Controller; use BookStack\Http\Controllers\Controller;
use BookStack\Repos\PageRepo; use BookStack\Entities\Repos\PageRepo;
use BookStack\Uploads\Image; use BookStack\Uploads\Image;
use BookStack\Uploads\ImageRepo; use BookStack\Uploads\ImageRepo;
use Exception; use Exception;

View File

@ -35,6 +35,7 @@
"socialiteproviders/twitch": "^5.0" "socialiteproviders/twitch": "^5.0"
}, },
"require-dev": { "require-dev": {
"imanghafoori/laravel-microscope": "^1.0",
"barryvdh/laravel-debugbar": "^3.2.8", "barryvdh/laravel-debugbar": "^3.2.8",
"barryvdh/laravel-ide-helper": "^2.6.4", "barryvdh/laravel-ide-helper": "^2.6.4",
"fzaninotto/faker": "^1.4", "fzaninotto/faker": "^1.4",

View File

@ -58,7 +58,7 @@ class RestrictionsTest extends BrowserKitTest
public function test_bookshelf_update_restriction() public function test_bookshelf_update_restriction()
{ {
$shelf = BookShelf::first(); $shelf = Bookshelf::first();
$this->actingAs($this->user) $this->actingAs($this->user)
->visit($shelf->getUrl('/edit')) ->visit($shelf->getUrl('/edit'))

View File

@ -1,4 +1,4 @@
<?php namespace Test\User; <?php namespace Tests\User;
use BookStack\Api\ApiToken; use BookStack\Api\ApiToken;
use Carbon\Carbon; use Carbon\Carbon;

View File

@ -1,4 +1,4 @@
<?php namespace Test\User; <?php namespace Tests\User;
use Tests\TestCase; use Tests\TestCase;

View File

@ -1,4 +1,4 @@
<?php namespace Test\User; <?php namespace Tests\User;
use Activity; use Activity;
use BookStack\Auth\User; use BookStack\Auth\User;