]> BookStack Code Mirror - bookstack/commitdiff
fixes from laravel-microscope
authorimanghafoori <redacted>
Thu, 15 Oct 2020 23:27:36 +0000 (02:57 +0330)
committerimanghafoori <redacted>
Fri, 16 Oct 2020 15:10:10 +0000 (18:40 +0330)
app/Auth/Permissions/PermissionService.php
app/Http/Controllers/Images/ImageController.php
tests/Permissions/RestrictionsTest.php
tests/User/UserApiTokenTest.php
tests/User/UserPreferencesTest.php
tests/User/UserProfileTest.php

index 97cc1ca241e84209f235136550378f3cb8f43f81..043227aab9504910f4c9704081b73099456fccb1 100644 (file)
@@ -3,11 +3,8 @@
 use BookStack\Auth\Permissions;
 use BookStack\Auth\Role;
 use BookStack\Entities\Book;
-use BookStack\Entities\Bookshelf;
-use BookStack\Entities\Chapter;
 use BookStack\Entities\Entity;
 use BookStack\Entities\EntityProvider;
-use BookStack\Entities\Page;
 use BookStack\Ownable;
 use Illuminate\Database\Connection;
 use Illuminate\Database\Eloquent\Builder;
index 7d06facffe14b963a53d645eb47d56d8a655b290..52cc463c8543753803b556057af1db7caab280da 100644 (file)
@@ -3,7 +3,7 @@
 use BookStack\Entities\Page;
 use BookStack\Exceptions\ImageUploadException;
 use BookStack\Http\Controllers\Controller;
-use BookStack\Repos\PageRepo;
+use BookStack\Entities\Repos\PageRepo;
 use BookStack\Uploads\Image;
 use BookStack\Uploads\ImageRepo;
 use Exception;
index 7d6c1831afdd0eeab6ecceb36b3b5f8127f61981..a43a65e5865c16744eddf636fa208ccce054176f 100644 (file)
@@ -58,7 +58,7 @@ class RestrictionsTest extends BrowserKitTest
 
     public function test_bookshelf_update_restriction()
     {
-        $shelf = BookShelf::first();
+        $shelf = Bookshelf::first();
 
         $this->actingAs($this->user)
             ->visit($shelf->getUrl('/edit'))
index f738eb579e4f9a836bc7f818e7de39e59a78ace9..c89a590f0dafc5539fc58884657a8f4c9320a7c8 100644 (file)
@@ -1,4 +1,4 @@
-<?php namespace Test\User;
+<?php namespace Tests\User;
 
 use BookStack\Api\ApiToken;
 use Carbon\Carbon;
index 0db4f803aff0bf268f4004b2339280dba10cc3fd..7ffc8f9db7085958b9ef5e5a80bc4bfed22a3022 100644 (file)
@@ -1,4 +1,4 @@
-<?php namespace Test\User;
+<?php namespace Tests\User;
 
 use Tests\TestCase;
 
index 0a3a1a6b202fcf776457f9478ddba01e39cbd76b..b564ed8c235a55e42d19d06cef4b8f2e199038aa 100644 (file)
@@ -1,4 +1,4 @@
-<?php namespace Test\User;
+<?php namespace Tests\User;
 
 use Activity;
 use BookStack\Auth\User;