Code Duplication    Length = 7-7 lines in 2 locations

tests/QueryGeneratorTest.php 2 locations

@@ 564-570 (lines=7) @@
561
562
563
	// ---- tests for field array to elasticsearch syntax
564
	public function testConvertWeightedFieldsForElasticaUnaryStrings() {
565
		$qg = new QueryGenerator();
566
		$qg->setClasses('FlickrPhotoTO');
567
		$fields = array('Title' => 1, 'Description' => 1);
568
		$expected = array('Title', 'Title.*','Description', 'Description.*');
569
		$this->assertEquals($expected, $qg->convertWeightedFieldsForElastica($fields));
570
	}
571
572
573
	public function testConvertWeightedFieldsForElasticaMultipleStrings() {
@@ 573-579 (lines=7) @@
570
	}
571
572
573
	public function testConvertWeightedFieldsForElasticaMultipleStrings() {
574
		$qg = new QueryGenerator();
575
		$qg->setClasses('FlickrPhotoTO');
576
		$fields = array('Title' => 2, 'Description' => 1);
577
		$expected = array('Title^2', 'Title.*^2','Description', 'Description.*');
578
		$this->assertEquals($expected, $qg->convertWeightedFieldsForElastica($fields));
579
	}
580
581
582
	public function testConvertWeightedFieldsForElasticaTestNonString() {