fixes from laravel-microscope

This commit is contained in:
imanghafoori 2020-10-16 02:57:36 +03:30
parent 6aa2bf9e27
commit 704b808e9e
6 changed files with 5 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

@ -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;