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