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/Index/StatusTest.php | 66 ---------------------- 1 file changed, 66 deletions(-) delete mode 100644 vendor/ruflin/elastica/test/lib/Elastica/Test/Index/StatusTest.php (limited to 'vendor/ruflin/elastica/test/lib/Elastica/Test/Index/StatusTest.php') diff --git a/vendor/ruflin/elastica/test/lib/Elastica/Test/Index/StatusTest.php b/vendor/ruflin/elastica/test/lib/Elastica/Test/Index/StatusTest.php deleted file mode 100644 index 8a056a53..00000000 --- a/vendor/ruflin/elastica/test/lib/Elastica/Test/Index/StatusTest.php +++ /dev/null @@ -1,66 +0,0 @@ -_getClient(); - $index = $client->getIndex($indexName); - $index->create(array(), true); - - $status = new IndexStatus($index); - - $aliases = $status->getAliases(); - - $this->assertTrue(empty($aliases)); - $this->assertInternalType('array', $aliases); - - $index->addAlias($aliasName); - $status->refresh(); - - $aliases = $status->getAliases(); - - $this->assertTrue(in_array($aliasName, $aliases)); - } - - public function testHasAlias() - { - $indexName = 'test'; - $aliasName = 'test-alias'; - - $client = $this->_getClient(); - $index = $client->getIndex($indexName); - $index->create(array(), true); - - $status = new IndexStatus($index); - - $this->assertFalse($status->hasAlias($aliasName)); - - $index->addAlias($aliasName); - $status->refresh(); - - $this->assertTrue($status->hasAlias($aliasName)); - } - - public function testGetSettings() - { - $indexName = 'test'; - - $client = $this->_getClient(); - $index = $client->getIndex($indexName); - $index->create(array(), true); - $status = $index->getStatus(); - - $settings = $status->getSettings(); - $this->assertInternalType('array', $settings); - $this->assertTrue(isset($settings['index']['number_of_shards'])); - } -} -- cgit v1.2.2