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

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