mirror of
https://github.com/silverstripe/silverstripe-staticpublisher
synced 2024-10-22 14:05:54 +02:00
Fixing tests by ensuring allPageToCache is defind on SiteTree
This commit is contained in:
parent
4b64a7d54e
commit
763a8d6afc
@ -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