Skip to content
This repository
Browse code

MINOR Removed SiteTree dependency from SSViewerTest (fixes #6907)

  • Loading branch information...
commit 71c026c75a4882db7731a851b43ab26883a630f4 1 parent 620b23a
Ingo Schommer authored March 14, 2012

Showing 1 changed file with 13 additions and 13 deletions. Show diff stats Hide diff stats

  1. 26  tests/view/SSViewerTest.php
26  tests/view/SSViewerTest.php
@@ -137,7 +137,7 @@ function testCoreGlobalVariableCalls() {
137 137
 
138 138
 	function testLocalFunctionsTakePriorityOverGlobals() {
139 139
 		$data = new ArrayData(array(
140  
-			'Page' => new SSViewerTest_Page()
  140
+			'Page' => new SSViewerTest_Object()
141 141
 		));
142 142
 
143 143
 		//call method with lots of arguments
@@ -174,7 +174,7 @@ function testCurrentScopeLoopWith() {
174 174
 						'Name' => 'SubKid2'
175 175
 					))
176 176
 				)),
177  
-				new SSViewerTest_Page('Number6')
  177
+				new SSViewerTest_Object('Number6')
178 178
 			))
179 179
 		));
180 180
 
@@ -535,16 +535,16 @@ function testCastingHelpers() {
535 535
 	function testSSViewerBasicIteratorSupport() {
536 536
 		$data = new ArrayData(array(
537 537
 			'Set' => new ArrayList(array(
538  
-				new SSViewerTest_Page("1"),
539  
-				new SSViewerTest_Page("2"),
540  
-				new SSViewerTest_Page("3"),
541  
-				new SSViewerTest_Page("4"),
542  
-				new SSViewerTest_Page("5"),
543  
-				new SSViewerTest_Page("6"),
544  
-				new SSViewerTest_Page("7"),
545  
-				new SSViewerTest_Page("8"),
546  
-				new SSViewerTest_Page("9"),
547  
-				new SSViewerTest_Page("10"),
  538
+				new SSViewerTest_Object("1"),
  539
+				new SSViewerTest_Object("2"),
  540
+				new SSViewerTest_Object("3"),
  541
+				new SSViewerTest_Object("4"),
  542
+				new SSViewerTest_Object("5"),
  543
+				new SSViewerTest_Object("6"),
  544
+				new SSViewerTest_Object("7"),
  545
+				new SSViewerTest_Object("8"),
  546
+				new SSViewerTest_Object("9"),
  547
+				new SSViewerTest_Object("10"),
548 548
 			))
549 549
 		));
550 550
 
@@ -966,7 +966,7 @@ class SSViewerTest_Controller extends Controller {
966 966
 	
967 967
 }
968 968
 
969  
-class SSViewerTest_Page extends SiteTree {
  969
+class SSViewerTest_Object extends DataObject {
970 970
 
971 971
 	public $number = null;
972 972
 

0 notes on commit 71c026c

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