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 --- .../test/lib/Elastica/Test/ClusterTest.php | 89 ---------------------- 1 file changed, 89 deletions(-) delete mode 100644 vendor/ruflin/elastica/test/lib/Elastica/Test/ClusterTest.php (limited to 'vendor/ruflin/elastica/test/lib/Elastica/Test/ClusterTest.php') diff --git a/vendor/ruflin/elastica/test/lib/Elastica/Test/ClusterTest.php b/vendor/ruflin/elastica/test/lib/Elastica/Test/ClusterTest.php deleted file mode 100644 index ae5fb980..00000000 --- a/vendor/ruflin/elastica/test/lib/Elastica/Test/ClusterTest.php +++ /dev/null @@ -1,89 +0,0 @@ -_getClient(); - - $cluster = new Cluster($client); - - $names = $cluster->getNodeNames(); - - $this->assertInternalType('array', $names); - $this->assertGreaterThan(0, count($names)); - } - - public function testGetNodes() - { - $client = $this->_getClient(); - $cluster = $client->getCluster(); - - $nodes = $cluster->getNodes(); - - foreach ($nodes as $node) { - $this->assertInstanceOf('Elastica\Node', $node); - } - - $this->assertGreaterThan(0, count($nodes)); - } - - public function testGetState() - { - $client = $this->_getClient(); - $cluster = $client->getCluster(); - $state = $cluster->getState(); - $this->assertInternalType('array', $state); - } - - /** - * @expectedException \Elastica\Exception\ConnectionException - */ - public function testShutdown() - { - $this->markTestSkipped('This test shuts down the cluster which means the following tests would not work'); - $client = $this->_getClient(); - $cluster = $client->getCluster(); - - $cluster->shutdown('2s'); - - sleep(5); - - $client->getStatus(); - } - - public function testGetIndexNames() - { - $client = $this->_getClient(); - $cluster = $client->getCluster(); - - $indexName = 'elastica_test999'; - $index = $this->_createIndex($indexName); - $index->delete(); - $cluster->refresh(); - - // Checks that index does not exist - $indexNames = $cluster->getIndexNames(); - $this->assertNotContains($index->getName(), $indexNames); - - $index = $this->_createIndex($indexName); - $cluster->refresh(); - - // Now index should exist - $indexNames = $cluster->getIndexNames(); - $this->assertContains($index->getname(), $indexNames); - } - - public function testGetHealth() - { - $client = $this->_getClient(); - $this->assertInstanceOf('Elastica\Cluster\Health', $client->getCluster()->getHealth()); - } -} -- cgit v1.2.3-54-g00ecf