| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 22 | public function testDefaultOptions() |
||
| 23 | { |
||
| 24 | $data = '<captcha-token>'; |
||
| 25 | |||
| 26 | $form = $this->factory->create(Recaptcha3Type::class); |
||
| 27 | $form->setData($data); |
||
| 28 | |||
| 29 | $this->assertTrue($form->isSynchronized()); |
||
| 30 | $this->assertEquals($data, $form->getData()); |
||
| 31 | |||
| 32 | $view = $form->createView(); |
||
| 33 | $this->assertSame(self::SITEKEY, $view->vars['site_key']); |
||
| 34 | $this->assertSame('homepage', $view->vars['action_name']); |
||
| 35 | $this->assertSame('', $view->vars['script_nonce_csp']); |
||
| 36 | $this->assertTrue($view->vars['enabled']); |
||
| 37 | } |
||
| 39 |