/**
  * @return void
  */
 protected function installNewsletterTypes()
 {
     foreach ($this->newsletterTypeCollection as $newsletterTypeName) {
         $newsletterType = new SpyNewsletterType();
         $newsletterType->setName($newsletterTypeName);
         $newsletterType->save();
     }
 }
 /**
  * @return void
  */
 protected function setTestNewsletterTypes()
 {
     $typeEntity = new SpyNewsletterType();
     $typeEntity->setName(self::TEST_TYPE1);
     $typeEntity->save();
     $typeEntity = new SpyNewsletterType();
     $typeEntity->setName(self::TEST_TYPE2);
     $typeEntity->save();
 }