/** * @expectedException Sabre\DAV\Exception\NotFound */ public function testUpdateTagNotFound() { $this->tagManager->expects($this->once())->method('updateTag')->with(1, 'Renamed', false, true)->will($this->throwException(new TagNotFoundException())); $this->node->update('Renamed', false, true); }