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
|
@@ 134-144 (lines=11) @@
|
| 131 |
|
/** |
| 132 |
|
* @package spamprotection |
| 133 |
|
*/ |
| 134 |
|
class FormSpamProtectionExtensionTest_FooProtector implements SpamProtector, TestOnly |
| 135 |
|
{ |
| 136 |
|
public function getFormField($name = null, $title = null, $value = null) |
| 137 |
|
{ |
| 138 |
|
return new TextField($name, 'Foo', $value); |
| 139 |
|
} |
| 140 |
|
|
| 141 |
|
public function setFieldMapping($fieldMapping) |
| 142 |
|
{ |
| 143 |
|
} |
| 144 |
|
} |
| 145 |
|
|