public function testGetChildren()
 {
     $tag1 = new SystemTag(555, 'TagOne', true, false);
     $tag2 = new SystemTag(556, 'TagTwo', true, true);
     $this->tagMapper->expects($this->once())->method('getTagIdsForObjects')->with([111], 'files')->will($this->returnValue(['111' => ['555', '556']]));
     $this->tagManager->expects($this->once())->method('getTagsByIds')->with(['555', '556'])->will($this->returnValue(['555' => $tag1, '666' => $tag2]));
     $children = $this->node->getChildren();
     $this->assertCount(2, $children);
     $this->assertInstanceOf('\\OCA\\DAV\\SystemTag\\SystemTagMappingNode', $children[0]);
     $this->assertInstanceOf('\\OCA\\DAV\\SystemTag\\SystemTagMappingNode', $children[1]);
     $this->assertEquals(111, $children[0]->getObjectId());
     $this->assertEquals('files', $children[0]->getObjectType());
     $this->assertEquals($tag1, $children[0]->getSystemTag());
     $this->assertEquals(111, $children[1]->getObjectId());
     $this->assertEquals('files', $children[1]->getObjectType());
     $this->assertEquals($tag2, $children[1]->getSystemTag());
 }
 /**
  * @expectedException Sabre\DAV\Exception\MethodNotAllowed
  */
 public function testGetChildren()
 {
     $this->node->getChildren();
 }