From d45dd34db95a131d0ab95db0f9630b9c52708a90 Mon Sep 17 00:00:00 2001 From: Hamish Friedlander Date: Tue, 28 Aug 2012 15:13:57 +1200 Subject: [PATCH] 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 --- tests/model/VirtualPageTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/model/VirtualPageTest.php b/tests/model/VirtualPageTest.php index ba4ef7ad..cd47dfbb 100644 --- a/tests/model/VirtualPageTest.php +++ b/tests/model/VirtualPageTest.php @@ -10,7 +10,7 @@ class VirtualPageTest extends SapphireTest { ); protected $requiredExtensions = array( - 'Page' => array('VirtualPageTest_PageExtension') + 'SiteTree' => array('VirtualPageTest_PageExtension') ); function setUp() {