Skip to content

Commit

Permalink
Fixing tests by ensuring allPageToCache is defind on SiteTree
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensby committed Feb 24, 2016
1 parent 4b64a7d commit 763a8d6
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion tests/FilesystemPublisherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -259,3 +265,12 @@ public function json(SS_HTTPRequest $request)
return $response;
}
}

class StaticPublisherTest_SiteTreeDecorator extends DataExtension implements TestOnly
{

public function allPagesToCache() {
return array();
}

}

0 comments on commit 763a8d6

Please sign in to comment.