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:
Serge Latyntsev 2021-02-25 16:23:56 +13:00 committed by GitHub
commit 5dd2c795d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 4 deletions

View File

@ -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)',

View File

@ -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()
{