예제 #1
0
 /**
  * 
  * {@inheritDoc}
  * 
  * @see \Doctrine\Common\DataFixtures\FixtureInterface::load()
  * 
  * @param Doctrine\Common\Persistence\ObjectManager $manager
  * 
  */
 public function load(ObjectManager $manager)
 {
     $innerCommunicationTU1 = new InnerCommunication();
     $innerCommunicationTU1->setInnerComDesc('InnerComDescTU1');
     $innerCommunicationTU1->setSourceAuthor('AuthorTU1');
     $innerCommunicationTU1->setSourceTitle('TitleTU1');
     $innerCommunicationTU1->setSourceYear(new \DateTime());
     $manager->persist($innerCommunicationTU1);
     $this->addReference('InnerCommunicationTU1', $innerCommunicationTU1);
     $innerCommunicationTU2 = new InnerCommunication();
     $innerCommunicationTU2->setInnerComDesc('InnerComDescTU2');
     $innerCommunicationTU2->setSourceAuthor('AuthorTU2');
     $innerCommunicationTU2->setSourceTitle('TitleTU2');
     $innerCommunicationTU2->setSourceYear(new \DateTime());
     $manager->persist($innerCommunicationTU2);
     $this->addReference('InnerCommunicationTU2', $innerCommunicationTU2);
     $manager->flush();
 }
예제 #2
0
 /**
  * Test the setInnerComDesc() method from the InnerCommunication class
  *
  * @uses \bcGen\MainBundle\Entity\Condition::setInnerComDesc()
  */
 public function testSetInnerComDesc()
 {
     echo "\n********************Test SetInnerComDesc()***************************************************\n";
     $this->innerCommunication->setInnerComDesc('setInnerComDesc');
     $this->assertEquals('setInnerComDesc', $this->innerCommunication->getInnerComDesc());
 }