$resultInstance = $wrapperInstance->doSelectByCriteria($criteriaInstance);
// Advanced to next entry and assert on it as it should always be there
- assert($resultInstance->next());
+ assert($resultInstance->valid());
// Set the result instance
$this->setResultInstance($resultInstance);