Ejemplo n.º 1
0
 public function testNotBlankValidation()
 {
     $notBlank = array('createdAt', 'dueDate');
     $this->validateNotBlanks($notBlank);
     $this->object->setCreatedAt(new \DateTime());
     $this->object->setDueDate(new \DateTime());
     $this->validate(0);
 }
Ejemplo n.º 2
0
 public function load(ObjectManager $manager)
 {
     $data = $this->container->get('ilioscore.dataloader.userMadeReminder')->getAll();
     foreach ($data as $arr) {
         $entity = new UserMadeReminder();
         $entity->setId($arr['id']);
         $manager->persist($entity);
         $this->addReference('userMadeReminders' . $arr['id'], $entity);
     }
     $manager->flush();
 }
Ejemplo n.º 3
0
 /**
  * @covers Ilios\CoreBundle\Entity\Session::__construct
  */
 public function testConstructor()
 {
     $this->assertNotEmpty($this->object->getCreatedAt());
 }