silverstripe-framework/tests/php/Security/MemberTest/ValidatorExtension.php
2024-08-28 17:00:39 +12:00

17 lines
357 B
PHP

<?php
namespace SilverStripe\Security\Tests\MemberTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\Core\Extension;
class ValidatorExtension extends Extension implements TestOnly
{
protected function updateValidator($validator)
{
$validator->addRequiredField('Surname');
$validator->removeRequiredField('FirstName');
}
}