Skip to content

Commit

Permalink
FIX Extend Page instead of SiteTree so that this works with GraphQL3
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Feb 25, 2021
1 parent 0119d59 commit 47cb513
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions code/multitab-validation/MultiTabPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)',
Expand Down
8 changes: 6 additions & 2 deletions code/multitab-validation/SingleTabPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down

0 comments on commit 47cb513

Please sign in to comment.