/** * Test an empty Group entity */ public function testEmptyGroup() { $group = new Group(); $this->assertNull($group->getId()); $this->assertNull($group->getName()); $this->assertNull($group->getDescription()); $this->assertNull($group->getCreatedBy()); $this->assertNull($group->getUpdatedBy()); $this->assertNull($group->getSlug()); }
/** * Creates a form to delete a Group entity. * * @param Group $group The Group entity * * @return \Symfony\Component\Form\Form The form */ private function createDeleteForm(Group $group) { return $this->createFormBuilder()->setAction($this->generateUrl('group_delete', array('id' => $group->getId())))->setMethod('DELETE')->getForm(); }