| @@ 63-71 (lines=9) @@ | ||
| 60 | $this->assertEquals('Bar', $form->Fields()->fieldByName('Captcha')->Title()); |
|
| 61 | } |
|
| 62 | ||
| 63 | public function testEnableSpamProtectionCustomTitle() |
|
| 64 | { |
|
| 65 | $form = $this->form->enableSpamProtection(array( |
|
| 66 | 'protector' => BarProtector::class, |
|
| 67 | 'title' => 'Baz', |
|
| 68 | )); |
|
| 69 | ||
| 70 | $this->assertEquals('Baz', $form->Fields()->fieldByName('Captcha')->Title()); |
|
| 71 | } |
|
| 72 | ||
| 73 | public function testCustomOptions() |
|
| 74 | { |
|
| @@ 73-82 (lines=10) @@ | ||
| 70 | $this->assertEquals('Baz', $form->Fields()->fieldByName('Captcha')->Title()); |
|
| 71 | } |
|
| 72 | ||
| 73 | public function testCustomOptions() |
|
| 74 | { |
|
| 75 | $form = $this->form->enableSpamProtection(array( |
|
| 76 | 'protector' => BazProtector::class, |
|
| 77 | 'title' => 'Qux', |
|
| 78 | 'name' => 'Borris' |
|
| 79 | )); |
|
| 80 | ||
| 81 | $this->assertEquals('Qux', $form->Fields()->fieldByName('Borris')->Title()); |
|
| 82 | } |
|
| 83 | ||
| 84 | public function testConfigurableName() |
|
| 85 | { |
|