/**
  * Verify models in widget output.
  *
  * @param string            $result
  * @param ArrayDataProvider $dataProvider
  */
 protected function verifyModels($result, $dataProvider)
 {
     for ($index = 1; $index <= $dataProvider->getTotalCount(); ++$index) {
         $this->assertContains('[model ' . $index . ']', $result);
     }
 }