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

@ -11,7 +11,13 @@ class FilesystemPublisherTest extends SapphireTest
protected $usesDatabase = true; protected $usesDatabase = true;
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();
}
}