Skip to content

Commit 8dc9689

Browse files
committed
Removed tests for removed ajax tag route
1 parent 181ae6d commit 8dc9689

1 file changed

Lines changed: 0 additions & 42 deletions

File tree

tests/Entity/TagTest.php

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -30,48 +30,6 @@ protected function getEntityWithTags($class, $tags = false): Entity
3030
return $entity;
3131
}
3232

33-
public function test_get_page_tags()
34-
{
35-
$page = $this->getEntityWithTags(Page::class);
36-
37-
// Add some other tags to check they don't interfere
38-
factory(Tag::class, $this->defaultTagCount)->create();
39-
40-
$this->asAdmin()->get("/ajax/tags/get/page/" . $page->id)
41-
->shouldReturnJson();
42-
43-
$json = json_decode($this->response->getContent());
44-
$this->assertTrue(count($json) === $this->defaultTagCount, "Returned JSON item count is not as expected");
45-
}
46-
47-
public function test_get_chapter_tags()
48-
{
49-
$chapter = $this->getEntityWithTags(Chapter::class);
50-
51-
// Add some other tags to check they don't interfere
52-
factory(Tag::class, $this->defaultTagCount)->create();
53-
54-
$this->asAdmin()->get("/ajax/tags/get/chapter/" . $chapter->id)
55-
->shouldReturnJson();
56-
57-
$json = json_decode($this->response->getContent());
58-
$this->assertTrue(count($json) === $this->defaultTagCount, "Returned JSON item count is not as expected");
59-
}
60-
61-
public function test_get_book_tags()
62-
{
63-
$book = $this->getEntityWithTags(Book::class);
64-
65-
// Add some other tags to check they don't interfere
66-
factory(Tag::class, $this->defaultTagCount)->create();
67-
68-
$this->asAdmin()->get("/ajax/tags/get/book/" . $book->id)
69-
->shouldReturnJson();
70-
71-
$json = json_decode($this->response->getContent());
72-
$this->assertTrue(count($json) === $this->defaultTagCount, "Returned JSON item count is not as expected");
73-
}
74-
7533
public function test_tag_name_suggestions()
7634
{
7735
// Create some tags with similar names to test with

0 commit comments

Comments
 (0)