Entity\TagTests::test_get_page_tags PHP Method

test_get_page_tags() public method

public test_get_page_tags ( )
    public function test_get_page_tags()
    {
        $page = $this->getPageWithTags();
        // Add some other tags to check they don't interfere
        factory(Tag::class, $this->defaultTagCount)->create();
        $this->asAdmin()->get("/ajax/tags/get/page/" . $page->id)->shouldReturnJson();
        $json = json_decode($this->response->getContent());
        $this->assertTrue(count($json) === $this->defaultTagCount, "Returned JSON item count is not as expected");
    }