mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
24 lines
412 B
PHP
24 lines
412 B
PHP
<?php
|
|
|
|
namespace SilverStripe\FrameworkTest\Model;
|
|
|
|
use Page;
|
|
use SilverStripe\Forms\RequiredFields;
|
|
|
|
if (!class_exists(Page::class)) {
|
|
return;
|
|
}
|
|
|
|
/**
|
|
* This class is specifically for the silverstripe/admin behat test multitab-validation.feature
|
|
*/
|
|
class SingleTabPage extends Page
|
|
{
|
|
public function getCMSValidator()
|
|
{
|
|
return new RequiredFields([
|
|
'Content'
|
|
]);
|
|
}
|
|
}
|