tests/EditableSpamProtectionFieldTest.php 1 location
|
@@ 125-135 (lines=11) @@
|
| 122 |
|
|
| 123 |
|
} |
| 124 |
|
|
| 125 |
|
class EditableSpamProtectionFieldTest_Protector implements SpamProtector, TestOnly |
| 126 |
|
{ |
| 127 |
|
public function getFormField($name = null, $title = null, $value = null) |
| 128 |
|
{ |
| 129 |
|
return new TextField($name, 'Foo', $value); |
| 130 |
|
} |
| 131 |
|
|
| 132 |
|
public function setFieldMapping($fieldMapping) |
| 133 |
|
{ |
| 134 |
|
} |
| 135 |
|
} |
| 136 |
|
|
tests/FormSpamProtectionExtensionTest.php 1 location
|
@@ 155-165 (lines=11) @@
|
| 152 |
|
/** |
| 153 |
|
* @package spamprotection |
| 154 |
|
*/ |
| 155 |
|
class FormSpamProtectionExtensionTest_FooProtector implements SpamProtector, TestOnly |
| 156 |
|
{ |
| 157 |
|
public function getFormField($name = null, $title = null, $value = null) |
| 158 |
|
{ |
| 159 |
|
return new TextField($name, 'Foo', $value); |
| 160 |
|
} |
| 161 |
|
|
| 162 |
|
public function setFieldMapping($fieldMapping) |
| 163 |
|
{ |
| 164 |
|
} |
| 165 |
|
} |
| 166 |
|
|