Code Duplication    Length = 7-7 lines in 2 locations

tests/model/DataListTest.php 1 location

@@ 1143-1149 (lines=7) @@
1140
	/**
1141
	 * $list->exclude(array('Name'=>array('bob','phil'), 'Age'=>array(21, 43))); //negative version
1142
	 */
1143
	public function testMultipleExcludeWithNoExclusion() {
1144
		$list = DataObjectTest_TeamComment::get();
1145
		$list = $list->exclude(array(
1146
			'Name'=>array('Bob','Joe'),
1147
			'Comment' => 'Phil is a unique guy, and comments on team2'));
1148
		$this->assertEquals(3, $list->count());
1149
	}
1150
1151
	/**
1152
	 *  $list->exclude(array('Name'=>array('bob','phil'), 'Age'=>array(21, 43)));

tests/model/MapTest.php 1 location

@@ 109-115 (lines=7) @@
106
		$this->assertEquals('This is a team comment by Joe', $map['Joe']);
107
	}
108
109
	public function testToArray() {
110
		$list = DataObjectTest_TeamComment::get();
111
		$map = new SS_Map($list, 'Name', 'Comment');
112
		$this->assertEquals(array("Joe" => "This is a team comment by Joe",
113
			"Bob" => "This is a team comment by Bob",
114
			"Phil" => "Phil is a unique guy, and comments on team2"), $map->toArray());
115
	}
116
117
	public function testKeys() {
118
		$list = DataObjectTest_TeamComment::get()->sort('Name');