Merge pull request #59 from dhensby/pulls/fix-tests

Fixing tests by ensuring allPageToCache is defind on SiteTree
This commit is contained in:
Will Rossiter 2016-02-25 09:09:34 +13:00
commit d8b05ae14a

View File

@ -12,6 +12,12 @@ class FilesystemPublisherTest extends SapphireTest
protected $orig = array(); protected $orig = array();
protected $requiredExtensions = array(
'SiteTree' => array(
'StaticPublisherTest_SiteTreeDecorator',
),
);
public function setUp() public function setUp()
{ {
parent::setUp(); parent::setUp();
@ -259,3 +265,12 @@ class StaticPublisherTestPage_Controller extends Page_Controller implements Test
return $response; return $response;
} }
} }
class StaticPublisherTest_SiteTreeDecorator extends DataExtension implements TestOnly
{
public function allPagesToCache() {
return array();
}
}