public function setUp()
 {
     parent::setUp();
     $this->tree = $this->getMockBuilder('\\Sabre\\DAV\\Tree')->disableOriginalConstructor()->getMock();
     $this->server = new \Sabre\DAV\Server($this->tree);
     $this->tagManager = $this->getMock('\\OCP\\SystemTag\\ISystemTagManager');
     $this->plugin = new \OCA\DAV\SystemTag\SystemTagPlugin($this->tagManager);
     $this->plugin->initialize($this->server);
 }
 public function setUp()
 {
     parent::setUp();
     $this->server = new \Sabre\DAV\Server();
     $this->tree = $this->getMockBuilder('\\Sabre\\DAV\\Tree')->disableOriginalConstructor()->getMock();
     $this->tagger = $this->getMock('\\OCP\\ITags');
     $this->tagManager = $this->getMock('\\OCP\\ITagManager');
     $this->tagManager->expects($this->any())->method('load')->with('files')->will($this->returnValue($this->tagger));
     $this->plugin = new \OCA\DAV\Connector\Sabre\TagsPlugin($this->tree, $this->tagManager);
     $this->plugin->initialize($this->server);
 }