]> BookStack Code Mirror - bookstack/blobdiff - tests/OpenGraphTest.php
Added language list favourites sorting, updated styles
[bookstack] / tests / OpenGraphTest.php
index 17a5aa2c56faaf50cb4e9fbd6ad5ca828cba76a1..3f807f024ef9c6f5cc4b02b9ceb6ae4fa451fa37 100644 (file)
@@ -6,9 +6,10 @@ use BookStack\Entities\Models\Book;
 use BookStack\Entities\Models\Bookshelf;
 use BookStack\Entities\Models\Chapter;
 use BookStack\Entities\Models\Page;
+use BookStack\Entities\Repos\BaseRepo;
 use BookStack\Entities\Repos\BookRepo;
-use BookStack\Entities\Repos\BookshelfRepo;
 use Illuminate\Support\Str;
+use Illuminate\Testing\TestResponse;
 use Tests\Uploads\UsesImages;
 
 class OpenGraphTest extends TestCase
@@ -69,8 +70,8 @@ class OpenGraphTest extends TestCase
         $this->assertArrayNotHasKey('image', $tags);
 
         // Test image set if image has cover image
-        $shelfRepo = app(BookshelfRepo::class);
-        $shelfRepo->updateCoverImage($shelf, $this->getTestImage('image.png'));
+        $baseRepo = app(BaseRepo::class);
+        $baseRepo->updateCoverImage($shelf, $this->getTestImage('image.png'));
         $resp = $this->asEditor()->get($shelf->getUrl());
         $tags = $this->getOpenGraphTags($resp);