Skip to content

Commit

Permalink
FIX VirtualPageTest failing on apps with no $db on Page
Browse files Browse the repository at this point in the history
VirtualPageTest was adding fields to Page via a decorator, but Page might
not have any fields itself. This changed Page from not having a table
to having a table, which then caused a problem on tearDown
  • Loading branch information
Hamish Friedlander committed Aug 28, 2012
1 parent cbadd3e commit d45dd34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/model/VirtualPageTest.php
Expand Up @@ -10,7 +10,7 @@ class VirtualPageTest extends SapphireTest {
);

protected $requiredExtensions = array(
'Page' => array('VirtualPageTest_PageExtension')
'SiteTree' => array('VirtualPageTest_PageExtension')
);

function setUp() {
Expand Down

0 comments on commit d45dd34

Please sign in to comment.