X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/265f5db03f3f08665bb113191f83c49e5dae53a7..refs/pull/3593/head:/tests/OpenGraphTest.php diff --git a/tests/OpenGraphTest.php b/tests/OpenGraphTest.php index 653f2e57e..3f807f024 100644 --- a/tests/OpenGraphTest.php +++ b/tests/OpenGraphTest.php @@ -1,12 +1,15 @@ -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); @@ -97,6 +100,4 @@ class OpenGraphTest extends TestCase return $tags; } - - -} \ No newline at end of file +}