lithium\tests\cases\data\source\DatabaseTest::testReadWithHasManyAndLimit PHP Method

testReadWithHasManyAndLimit() public method

    public function testReadWithHasManyAndLimit()
    {
        $options = array('type' => 'read', 'model' => $this->_model, 'with' => array('MockDatabaseComment'), 'limit' => 1);
        $result = $this->_db->read(new Query($options), $options);
        $this->assertNotInstanceOf('lithium\\data\\collection\\RecordSet', $result);
    }
DatabaseTest