Skip to content
This repository
Browse code

FIX VirtualPageTest failing on apps with no $db on Page

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...
commit d45dd34db95a131d0ab95db0f9630b9c52708a90 1 parent cbadd3e
Hamish Friedlander authored August 28, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  tests/model/VirtualPageTest.php
2  tests/model/VirtualPageTest.php
@@ -10,7 +10,7 @@ class VirtualPageTest extends SapphireTest {
10 10
 	);
11 11
 
12 12
 	protected $requiredExtensions = array(
13  
-		'Page' => array('VirtualPageTest_PageExtension')
  13
+		'SiteTree' => array('VirtualPageTest_PageExtension')
14 14
 	);
15 15
 
16 16
 	function setUp() {

0 notes on commit d45dd34

Please sign in to comment.
Something went wrong with that request. Please try again.