| Conditions | 1 |
| Paths | 1 |
| Total Lines | 35 |
| Code Lines | 25 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function testLoadCustom(): void |
||
| 37 | { |
||
| 38 | $this->load([ |
||
| 39 | 'twig' => [ |
||
| 40 | 'mail' => [ |
||
| 41 | 'css_class' => 'spamme', |
||
| 42 | 'dot_text' => ['[DOT]'], |
||
| 43 | 'at_text' => ['[AT'], |
||
| 44 | ], |
||
| 45 | ], |
||
| 46 | 'time' => [ |
||
| 47 | 'min' => 0, |
||
| 48 | 'max' => 600, |
||
| 49 | 'global' => true, |
||
| 50 | ], |
||
| 51 | 'honeypot' => [ |
||
| 52 | 'field' => 'custom', |
||
| 53 | 'class' => 'hide', |
||
| 54 | 'global' => true, |
||
| 55 | 'provider' => 'core23_antispam.provider.custom', |
||
| 56 | ], |
||
| 57 | ]); |
||
| 58 | |||
| 59 | $this->assertContainerBuilderHasServiceDefinitionWithArgument('core23_antispam.form.extension.type.time', 2, [ |
||
| 60 | 'min' => 0, |
||
| 61 | 'max' => 600, |
||
| 62 | 'global' => true, |
||
| 63 | ]); |
||
| 64 | $this->assertContainerBuilderHasServiceDefinitionWithArgument('core23_antispam.form.extension.type.honeypot', 1, [ |
||
| 65 | 'field' => 'custom', |
||
| 66 | 'class' => 'hide', |
||
| 67 | 'global' => true, |
||
| 68 | 'provider' => 'core23_antispam.provider.custom', |
||
| 69 | ]); |
||
| 70 | } |
||
| 71 | |||
| 79 |