dnadesign /
silverstripe-elemental
| 1 | <?php |
||
| 2 | |||
| 3 | namespace DNADesign\Elemental\Tests\Src; |
||
| 4 | |||
| 5 | use SilverStripe\Dev\TestOnly; |
||
| 6 | use DNADesign\Elemental\Models\BaseElement; |
||
| 7 | |||
| 8 | class TestElement extends BaseElement implements TestOnly |
||
| 9 | { |
||
| 10 | private static $table_name = 'TestElement'; |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 11 | |||
| 12 | private static $db = [ |
||
|
0 ignored issues
–
show
|
|||
| 13 | 'TestValue' => 'Text' |
||
| 14 | ]; |
||
| 15 | |||
| 16 | private static $controller_class = TestElementController::class; |
||
|
0 ignored issues
–
show
|
|||
| 17 | |||
| 18 | public function i18n_singular_name() |
||
| 19 | { |
||
| 20 | return 'A test element'; |
||
| 21 | } |
||
| 22 | } |
||
| 23 |