mirror of
https://github.com/silverstripe/silverstripe-staticpublisher
synced 2024-10-22 14:05:54 +02:00
Merge pull request #59 from dhensby/pulls/fix-tests
Fixing tests by ensuring allPageToCache is defind on SiteTree
This commit is contained in:
commit
d8b05ae14a
@ -12,6 +12,12 @@ class FilesystemPublisherTest extends SapphireTest
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user