From 80f7dc77d430774192b929d780f96260066df2ee Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 18 Oct 2015 09:31:31 +0200 Subject: Update to MediaWiki 1.25.3 --- .../Elastica/Test/Aggregation/CardinalityTest.php | 38 ---------------------- 1 file changed, 38 deletions(-) delete mode 100644 vendor/ruflin/elastica/test/lib/Elastica/Test/Aggregation/CardinalityTest.php (limited to 'vendor/ruflin/elastica/test/lib/Elastica/Test/Aggregation/CardinalityTest.php') diff --git a/vendor/ruflin/elastica/test/lib/Elastica/Test/Aggregation/CardinalityTest.php b/vendor/ruflin/elastica/test/lib/Elastica/Test/Aggregation/CardinalityTest.php deleted file mode 100644 index d2f4d2be..00000000 --- a/vendor/ruflin/elastica/test/lib/Elastica/Test/Aggregation/CardinalityTest.php +++ /dev/null @@ -1,38 +0,0 @@ -_index = $this->_createIndex("cardinality"); - $docs = array( - new Document("1", array("color" => "blue")), - new Document("2", array("color" => "blue")), - new Document("3", array("color" => "red")), - new Document("4", array("color" => "green")), - ); - $this->_index->getType("test")->addDocuments($docs); - $this->_index->refresh(); - } - - public function testCardinalityAggregation() - { - $agg = new Cardinality("cardinality"); - $agg->setField("color"); - - $query = new Query(); - $query->addAggregation($agg); - $results = $this->_index->search($query)->getAggregation("cardinality"); - - $this->assertEquals(3, $results['value']); - } -} - -- cgit v1.2.3-54-g00ecf