Beispiel #1
0
 public function testGetAllUsersList()
 {
     $userId = 16;
     $queryTemplate = Node::QUERY_TEMPLATE_GET_ALL_USERS;
     $userList = [6 => 'Name 6', 2 => 'Name 2'];
     $neo4j = $this->_getNeo4jMock($queryTemplate, $userList);
     $nodeRepository = new Node($neo4j);
     $this->assertEquals($userList, $nodeRepository->getAllUsersList($userId));
 }
Beispiel #2
0
 /**
  * Get all user.
  *
  * @return Response
  */
 public function listUsers()
 {
     return new Response($this->_nodeRepository->getAllUsersList(), Response::HTTP_OK);
 }