| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 31 | public function testType(): void |
||
| 32 | { |
||
| 33 | /** @var Form $form */ |
||
| 34 | $form = $this->factory->create(TimestampType::class, new \DateTime(), ['data_class' => null]); |
||
| 35 | $form->submit($this->time); |
||
| 36 | $this->assertForm($form); |
||
| 37 | |||
| 38 | $form = $this->factory->create(TimestampType::class); |
||
| 39 | $form->submit($this->time); |
||
| 40 | $this->assertForm($form); |
||
| 41 | |||
| 42 | $form = $this->factory->create(TimestampType::class); |
||
| 43 | $form->submit(''); |
||
| 44 | static::assertSame('', $form->getViewData()); |
||
| 45 | } |
||
| 46 | |||
| 58 |