示例#1
0
 /**
  * test sync with non existing collection id
  */
 public function testCreateDevice()
 {
     $newDevice = Syncope_Backend_DeviceTests::getTestDevice();
     $device = $this->_deviceBackend->create($newDevice);
     #var_dump($device);
     return $device;
 }
示例#2
0
 /**
  * (non-PHPdoc)
  * @see ActiveSync/ActiveSync_TestCase::setUp()
  */
 protected function setUp()
 {
     $this->_db = getTestDatabase();
     $this->_db->beginTransaction();
     $this->_deviceBackend = new Syncope_Backend_Device($this->_db);
     $this->_folderBackend = new Syncope_Backend_Folder($this->_db);
     $newDevice = Syncope_Backend_DeviceTests::getTestDevice();
     $this->_device = $this->_deviceBackend->create($newDevice);
 }
 /**
  * (non-PHPdoc)
  * @see ActiveSync/ActiveSync_TestCase::setUp()
  */
 protected function setUp()
 {
     $this->_db = getTestDatabase();
     $this->_db->beginTransaction();
     $this->_contentBackend = new Syncope_Backend_Content($this->_db);
     $this->_deviceBackend = new Syncope_Backend_Device($this->_db);
     $this->_folderBackend = new Syncope_Backend_Folder($this->_db);
     $this->_syncStateBackend = new Syncope_Backend_SyncState($this->_db);
     $this->_device = $this->_deviceBackend->create(Syncope_Backend_DeviceTests::getTestDevice());
     $this->_folder = $this->_folderBackend->create(Syncope_Backend_FolderTests::getTestFolder($this->_device));
 }