mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
FIX Extend Page instead of SiteTree so that this works with GraphQL3
This commit is contained in:
parent
0119d5946e
commit
47cb51360d
@ -2,14 +2,18 @@
|
|||||||
|
|
||||||
namespace SilverStripe\FrameworkTest\Model;
|
namespace SilverStripe\FrameworkTest\Model;
|
||||||
|
|
||||||
use SilverStripe\CMS\Model\SiteTree;
|
use Page;
|
||||||
use SilverStripe\Forms\RequiredFields;
|
use SilverStripe\Forms\RequiredFields;
|
||||||
use SilverStripe\Forms\TextField;
|
use SilverStripe\Forms\TextField;
|
||||||
|
|
||||||
|
if (!class_exists(Page::class)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class is specifically for the silverstripe/admin behat test multitab-validation.feature
|
* This class is specifically for the silverstripe/admin behat test multitab-validation.feature
|
||||||
*/
|
*/
|
||||||
class MultiTabPage extends SiteTree
|
class MultiTabPage extends Page
|
||||||
{
|
{
|
||||||
private static $db = [
|
private static $db = [
|
||||||
'SecondTabFirstField' => 'Varchar(50)',
|
'SecondTabFirstField' => 'Varchar(50)',
|
||||||
|
@ -2,13 +2,17 @@
|
|||||||
|
|
||||||
namespace SilverStripe\FrameworkTest\Model;
|
namespace SilverStripe\FrameworkTest\Model;
|
||||||
|
|
||||||
use SilverStripe\CMS\Model\SiteTree;
|
use Page;
|
||||||
use SilverStripe\Forms\RequiredFields;
|
use SilverStripe\Forms\RequiredFields;
|
||||||
|
|
||||||
|
if (!class_exists(Page::class)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class is specifically for the silverstripe/admin behat test multitab-validation.feature
|
* This class is specifically for the silverstripe/admin behat test multitab-validation.feature
|
||||||
*/
|
*/
|
||||||
class SingleTabPage extends SiteTree
|
class SingleTabPage extends Page
|
||||||
{
|
{
|
||||||
public function getCMSValidator()
|
public function getCMSValidator()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user