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 --- .../Exception/PartialShardFailureExceptionTest.php | 55 ---------------------- 1 file changed, 55 deletions(-) delete mode 100644 vendor/ruflin/elastica/test/lib/Elastica/Test/Exception/PartialShardFailureExceptionTest.php (limited to 'vendor/ruflin/elastica/test/lib/Elastica/Test/Exception/PartialShardFailureExceptionTest.php') diff --git a/vendor/ruflin/elastica/test/lib/Elastica/Test/Exception/PartialShardFailureExceptionTest.php b/vendor/ruflin/elastica/test/lib/Elastica/Test/Exception/PartialShardFailureExceptionTest.php deleted file mode 100644 index 31698e26..00000000 --- a/vendor/ruflin/elastica/test/lib/Elastica/Test/Exception/PartialShardFailureExceptionTest.php +++ /dev/null @@ -1,55 +0,0 @@ -_getClient(); - $index = $client->getIndex('elastica_partial_failure'); - $index->create(array( - 'index' => array( - 'number_of_shards' => 5, - 'number_of_replicas' => 0 - ) - ), true); - - $type = $index->getType('folks'); - - $type->addDocument(new Document('', array('name' => 'ruflin'))); - $type->addDocument(new Document('', array('name' => 'bobrik'))); - $type->addDocument(new Document('', array('name' => 'kimchy'))); - - $index->refresh(); - - $query = Query::create(array( - 'query' => array( - 'filtered' => array( - 'filter' => array( - 'script' => array( - 'script' => 'doc["undefined"] > 8', // compiles, but doesn't work - ), - ), - ), - ), - )); - - try { - $index->search($query); - - $this->fail('PartialShardFailureException should have been thrown'); - } catch (PartialShardFailureException $e) { - $resultSet = new ResultSet($e->getResponse(), $query); - $this->assertEquals(0, count($resultSet->getResults())); - } - } - -} -- cgit v1.2.2