/** * {@inheritDoc} */ public function load(ObjectManager $manager) { $faker = Factory::create(); for ($i = 0; $i < 10; $i++) { $projectStatus = new ProjectStatus(); $projectStatus->setName($faker->sentence(6)); $projectStatus->setDescription($faker->paragraph(2)); $this->addReference('project-status-' . $i, $projectStatus); $manager->persist($projectStatus); } $manager->flush(); }
public function testSetDescription() { $projectStatus = new ProjectStatus(); $projectStatus->setDescription('The setup phase'); $this->assertEquals('The setup phase', $projectStatus->getDescription()); }