public function testNotBlankValidation()
 {
     $notBlank = array('title');
     $this->validateNotBlanks($notBlank);
     $this->object->setTitle('20 max title');
     $this->validate(0);
 }
 public function load(ObjectManager $manager)
 {
     $data = $this->container->get('ilioscore.dataloader.courseClerkshipType')->getAll();
     foreach ($data as $arr) {
         $entity = new CourseClerkshipType();
         $entity->setId($arr['id']);
         $entity->setTitle($arr['title']);
         $manager->persist($entity);
         $this->addReference('courseClerkshipTypes' . $arr['id'], $entity);
     }
     $manager->flush();
 }
 /**
  * @covers \Ilios\CoreBundle\Entity\CourseClerkshipType::__construct
  */
 public function testConstructor()
 {
     $this->assertEmpty($this->object->getCourses());
 }