| 1 | <?php |
||
| 9 | class JSONTextExtensionTest extends FunctionalTest |
||
|
|
|||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected static $fixture_file = 'jsontext/tests/fixtures/yml/JSONTextExtension.yml'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Ensure our TestOnly DO's are usable as fixtures in the test DB |
||
| 18 | * |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | protected $extraDataObjects = [ |
||
| 22 | 'JSONTextTestPage', |
||
| 23 | ]; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Is an exception thrown when no POSTed vars are available for |
||
| 27 | * non DB-backed fields declared on a SiteTree class? |
||
| 28 | */ |
||
| 29 | public function testExceptionThrownOnBeforeWrite() |
||
| 45 | } |
||
| 46 | |||
| 58 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.