Skip to content
This repository
Browse code

MINOR Fix of GridFieldDefaultConfigTest

  • Loading branch information...
commit 34e7e9a05e42e7af712b59ce866c69c58d22501b 1 parent 0a82b90
Stig Lindqvist authored March 09, 2012

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

  1. 13  tests/forms/GridFieldTest.php
13  tests/forms/GridFieldTest.php
@@ -30,12 +30,15 @@ public function testGridFieldDefaultConfig() {
30 30
 
31 31
 		$expectedComponents = new ArrayList(array(
32 32
 			new GridFieldToolbarHeader(),
33  
-			new GridFieldSortableHeader,
34  
-			new GridFieldFilterHeader,
35  
-			new GridFieldDataColumns,
36  
-			new GridFieldPaginator,
37  
-			new GridState_Component,
  33
+			$sort = new GridFieldSortableHeader(),
  34
+			$filter = new GridFieldFilterHeader(),
  35
+			new GridFieldDataColumns(),
  36
+			$pagination = new GridFieldPaginator(),
  37
+			new GridState_Component(),
38 38
 		));
  39
+		$sort->throwExceptionOnBadDataType(false);
  40
+		$filter->throwExceptionOnBadDataType(false);
  41
+		$pagination->throwExceptionOnBadDataType(false);
39 42
 		
40 43
 		$this->assertEquals($expectedComponents, $obj->getConfig()->getComponents(), 'Testing default Config');
41 44
 	}

0 notes on commit 34e7e9a

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