mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
26 lines
463 B
PHP
26 lines
463 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
|
|
{
|
|
private static $table_name = 'SingleTabPage';
|
|
|
|
public function getCMSValidator()
|
|
{
|
|
return new RequiredFields([
|
|
'Content'
|
|
]);
|
|
}
|
|
}
|