Fixing tests by ensuring allPageToCache is defind on SiteTree

This commit is contained in:
Daniel Hensby 2016-02-24 17:34:27 +00:00
parent 4b64a7d54e
commit 763a8d6afc

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();
}
}