/** * (non-PHPdoc) * @see ActiveSync/ActiveSync_TestCase::setUp() */ public function setUp() { $this->_db = ConnectionManager::getDataSource('test'); $this->_db->begin(); $this->_deviceBackend = new Syncroton_Backend_Device($this->_db); $this->_folderBackend = new Syncroton_Backend_Folder($this->_db); $this->_syncStateBackend = new Syncroton_Backend_SyncState($this->_db); require_once dirname(__FILE__) . DS . 'DeviceTest.php'; $this->_device = $this->_deviceBackend->create(DeviceTest::getTestDevice()); require_once dirname(__FILE__) . DS . 'FolderTest.php'; $this->_folder = $this->_folderBackend->create(FolderTest::getTestFolder($this->_device)); }
public function testGetExceptionNotFound() { $this->setExpectedException('Syncroton_Exception_NotFound'); $this->_folderBackend->get('invalidId'); }