public function getDataId() { if ($this->_data_id === null) { throw new Horde_Kolab_Storage_Exception('You must set the ID of the data cache!'); } return $this->_data_id; }
/** * @expectedException Horde_Kolab_Storage_Exception */ public function testMissingDataId() { $cache = new Horde_Kolab_Storage_Cache_Data($this->getMockCache()); $cache->getDataId(); }