/**
  * Sets up test rows.
  */
 protected function setUpTestRows()
 {
     $collection = $this->getConnection()->getFileCollection(CustomerFile::collectionName());
     $rows = [];
     for ($i = 1; $i <= 10; $i++) {
         $record = ['tag' => 'tag' . $i, 'status' => $i];
         $content = 'content' . $i;
         $record['_id'] = $collection->insertFileContent($content, $record);
         $record['content'] = $content;
         $rows[] = $record;
     }
     $this->testRows = $rows;
 }
 /**
  * Sets up test rows.
  */
 protected function setUpTestRows()
 {
     $fileCollection = $this->getConnection()->getFileCollection(CustomerFile::collectionName());
     $customers = [];
     $files = [];
     for ($i = 1; $i <= 5; $i++) {
         $file = ['tag' => 'tag' . $i, 'status' => $i];
         $content = 'content' . $i;
         $file['_id'] = $fileCollection->insertFileContent($content, $file);
         $file['content'] = $content;
         $files[] = $file;
         $customers[] = ['name' => 'name' . $i, 'email' => 'email' . $i, 'address' => 'address' . $i, 'status' => $i, 'file_id' => $file['_id']];
     }
     $customerCollection = $this->getConnection()->getCollection(Customer::collectionName());
     $customers = $customerCollection->batchInsert($customers);
 }