private function createPage()
 {
     $page = new PageDocument();
     $page->setTitle('Hello');
     $page->setResourceSegment('/hello');
     $page->setParent($this->contentDocument);
     $page->setStructureType('internallinks');
     $page->getStructure()->bind(['title' => 'World', 'internalLinks' => [$this->contentDocument->getUuid()]], true);
     $this->documentManager->persist($page, 'fr');
     $this->documentManager->flush();
     return $page;
 }
 public function testGetItemsTags()
 {
     $client = $this->createAuthenticatedClient();
     $client->request('GET', '/api/items?webspace=sulu_io&locale=en&dataSource=' . $this->team->getUuid() . '&provider=content&excluded=' . $this->team->getUuid() . '&limitResult=2&tags[]=' . $this->tag1->getName());
     $this->assertEquals(200, $client->getResponse()->getStatusCode());
     $result = json_decode($client->getResponse()->getContent(), true);
     $this->assertEquals(['id' => $this->team->getUuid(), 'title' => 'Team', 'path' => '/team'], $result['datasource']);
     $this->assertEquals([['id' => $this->johannes->getUuid(), 'title' => 'Johannes']], $result['_embedded']['items']);
 }