1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Migrated much test entity usage via find/replace

This commit is contained in:
Dan Brown
2022-09-29 17:31:38 +01:00
parent 068a8a068c
commit b56f7355aa
45 changed files with 264 additions and 384 deletions

View File

@ -18,7 +18,7 @@ class OpenGraphTest extends TestCase
public function test_page_tags()
{
$page = Page::query()->first();
$page = $this->entities->page();
$resp = $this->asEditor()->get($page->getUrl());
$tags = $this->getOpenGraphTags($resp);
@ -29,7 +29,7 @@ class OpenGraphTest extends TestCase
public function test_chapter_tags()
{
$chapter = Chapter::query()->first();
$chapter = $this->entities->chapter();
$resp = $this->asEditor()->get($chapter->getUrl());
$tags = $this->getOpenGraphTags($resp);
@ -40,7 +40,7 @@ class OpenGraphTest extends TestCase
public function test_book_tags()
{
$book = Book::query()->first();
$book = $this->entities->book();
$resp = $this->asEditor()->get($book->getUrl());
$tags = $this->getOpenGraphTags($resp);
@ -60,7 +60,7 @@ class OpenGraphTest extends TestCase
public function test_shelf_tags()
{
$shelf = Bookshelf::query()->first();
$shelf = $this->entities->shelf();
$resp = $this->asEditor()->get($shelf->getUrl());
$tags = $this->getOpenGraphTags($resp);