/** * Sets up the node, expects a full path name * * @param ISystemTag $tag system tag * @param string $objectId * @param string $objectType * @param ISystemTagManager $tagManager * @param ISystemTagObjectMapper $tagMapper */ public function __construct(ISystemTag $tag, $objectId, $objectType, ISystemTagManager $tagManager, ISystemTagObjectMapper $tagMapper) { $this->objectId = $objectId; $this->objectType = $objectType; $this->tagMapper = $tagMapper; parent::__construct($tag, $tagManager); }
/** * @expectedException Sabre\DAV\Exception\NotFound */ public function testDeleteTagNotFound() { $this->tagManager->expects($this->once())->method('deleteTags')->with('1')->will($this->throwException(new TagNotFoundException())); $this->node->delete(); }