silverstripe-framework/tests/php/Security/MemberTest/ValidatorForm.php

35 lines
772 B
PHP
Raw Normal View History

2016-10-14 03:30:05 +02:00
<?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')
)
);
}
2016-10-14 03:30:05 +02:00
}