|
@@ 52-60 (lines=9) @@
|
| 49 |
|
$this->assertEquals('Bar', $form->Fields()->fieldByName('Captcha')->Title()); |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
public function testEnableSpamProtectionCustomTitle() |
| 53 |
|
{ |
| 54 |
|
$form = $this->form->enableSpamProtection(array( |
| 55 |
|
'protector' => 'FormSpamProtectionExtensionTest_BarProtector', |
| 56 |
|
'title' => 'Baz', |
| 57 |
|
)); |
| 58 |
|
|
| 59 |
|
$this->assertEquals('Baz', $form->Fields()->fieldByName('Captcha')->Title()); |
| 60 |
|
} |
| 61 |
|
|
| 62 |
|
public function testCustomOptions() |
| 63 |
|
{ |
|
@@ 62-71 (lines=10) @@
|
| 59 |
|
$this->assertEquals('Baz', $form->Fields()->fieldByName('Captcha')->Title()); |
| 60 |
|
} |
| 61 |
|
|
| 62 |
|
public function testCustomOptions() |
| 63 |
|
{ |
| 64 |
|
$form = $this->form->enableSpamProtection(array( |
| 65 |
|
'protector' => 'FormSpamProtectionExtensionTest_BazProtector', |
| 66 |
|
'title' => 'Qux', |
| 67 |
|
'name' => 'Borris' |
| 68 |
|
)); |
| 69 |
|
|
| 70 |
|
$this->assertEquals('Qux', $form->Fields()->fieldByName('Borris')->Title()); |
| 71 |
|
} |
| 72 |
|
|
| 73 |
|
public function testConfigurableName() |
| 74 |
|
{ |