lithium\tests\cases\data\collection\DocumentSetTest::testInternalKeys PHP Method

testInternalKeys() public method

public testInternalKeys ( )
    public function testInternalKeys()
    {
        $result = new MockResult(array('data' => array(array('_id' => '4c8f86167675abfabdbf0300', 'title' => 'bar'), array('_id' => '5c8f86167675abfabdbf0301', 'title' => 'foo'), array('_id' => '6c8f86167675abfabdbf0302', 'title' => 'dib'))));
        $doc = new DocumentSet(array('model' => $this->_model, 'result' => $result));
        $this->assertEqual(array(0 => '4c8f86167675abfabdbf0300', 1 => '5c8f86167675abfabdbf0301', 2 => '6c8f86167675abfabdbf0302'), $doc->keys());
    }