Beispiel #1
0
 /**
  * @param ObjectManager $manager
  */
 public function load(ObjectManager $manager)
 {
     foreach ($this->data as $methodName => $methodLabel) {
         $method = new LeadStatus($methodName);
         $method->setLabel($methodLabel);
         $manager->persist($method);
     }
     $manager->flush();
 }
Beispiel #2
0
 public function testGetLabel()
 {
     $obj = new LeadStatus('test_name');
     $obj->setLabel('test_label');
     $this->assertEquals('test_label', $obj->getLabel());
 }