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