Exemple #1
0
 public function __construct(UuidInterface $id = null)
 {
     $this->setId($id);
     $this->setCreated();
     $this->tags = new ArrayCollection();
     $this->sortOrder = 0;
     $this->setType(TextOptionType::text());
 }
 public function testGetters()
 {
     $this->assertSame('Text', TextOptionType::text()->getName());
     $this->assertSame('Textarea', TextOptionType::textarea()->getName());
     $this->assertSame('File', TextOptionType::file()->getName());
     $this->assertSame('Date', TextOptionType::date()->getName());
     $this->assertSame('Time', TextOptionType::time()->getName());
     $this->assertSame('DateTime', TextOptionType::dateTime()->getName());
 }