mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-05 01:01:17 +02:00
35 lines
772 B
PHP
35 lines
772 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Security\Tests\MemberTest;
|
|
|
|
use SilverStripe\Control\Controller;
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\Forms\FieldList;
|
|
use SilverStripe\Forms\Form;
|
|
use SilverStripe\Forms\FormAction;
|
|
use SilverStripe\Forms\TextField;
|
|
|
|
/**
|
|
* @skipUpgrade
|
|
*/
|
|
class ValidatorForm extends Form implements TestOnly
|
|
{
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct(
|
|
Controller::curr(),
|
|
__CLASS__,
|
|
new FieldList(
|
|
new TextField('Email'),
|
|
new TextField('Surname'),
|
|
new TextField('ID'),
|
|
new TextField('FirstName')
|
|
),
|
|
new FieldList(
|
|
new FormAction('someAction')
|
|
)
|
|
);
|
|
}
|
|
}
|