Skip to content

Commit

Permalink
Merge pull request #86 from creative-commoners/pulls/4/extend-page
Browse files Browse the repository at this point in the history
FIX Extend Page instead of SiteTree so that this works with GraphQL3
  • Loading branch information
dnsl48 authored Feb 25, 2021
2 parents 0119d59 + 47cb513 commit 5dd2c79
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 5dd2c79

Please sign in to comment.