Horde_ActiveSync_StateTest_Base::_testPartialSyncWithChangedCollections PHP Method

_testPartialSyncWithChangedCollections() protected method

Tests the setup for a PARTIAL sync request.
    protected function _testPartialSyncWithChangedCollections()
    {
        $collections = $this->getCollectionHandler();
        $collections->loadCollectionsFromCache();
        // Now import a collection that IS different (which is the only reason
        // to have imported colletions with PARTIAL).
        $col = array('id' => '519422f1-4c5c-4547-946a-1701c0a8015f', 'windowsize' => 5, 'truncation' => 0, 'mimesupport' => 0, 'mimetruncation' => 8, 'conflict' => 1, 'bodyprefs' => array('wanted' => 2, 2 => array('type' => 2, 'truncationsize' => 100000)), 'synckey' => '{51941e99-0b9c-41f8-b678-1532c0a8015f}3', 'deletesasmoves' => 1, 'filtertype' => 5);
        $collections->addCollection($col);
        $this->assertEquals(2, $collections->collectionCount());
        $this->assertEquals(true, $collections->initPartialSync());
    }