summaryrefslogtreecommitdiff
path: root/vendor/ruflin/elastica/test/lib/Elastica/Test/Node/InfoTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/ruflin/elastica/test/lib/Elastica/Test/Node/InfoTest.php')
-rw-r--r--vendor/ruflin/elastica/test/lib/Elastica/Test/Node/InfoTest.php42
1 files changed, 0 insertions, 42 deletions
diff --git a/vendor/ruflin/elastica/test/lib/Elastica/Test/Node/InfoTest.php b/vendor/ruflin/elastica/test/lib/Elastica/Test/Node/InfoTest.php
deleted file mode 100644
index 10886b2d..00000000
--- a/vendor/ruflin/elastica/test/lib/Elastica/Test/Node/InfoTest.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-
-namespace Elastica\Test\Node;
-
-use Elastica\Node;
-use Elastica\Node\Info as NodeInfo;
-use Elastica\Test\Base as BaseTest;
-
-class InfoTest extends BaseTest
-{
- public function testGet()
- {
- $client = $this->_getClient();
- $names = $client->getCluster()->getNodeNames();
- $name = reset($names);
-
- $node = new Node($name, $client);
- $info = new NodeInfo($node);
-
- $this->assertNull($info->get('os', 'mem', 'total'));
-
- // Load os infos
- $info = new NodeInfo($node, array('os'));
-
- $this->assertTrue(!is_null($info->get('os', 'mem', 'total_in_bytes')));
- $this->assertInternalType('array', $info->get('os', 'mem'));
- $this->assertNull($info->get('test', 'notest', 'notexist'));
- }
-
- public function testHasPlugin()
- {
- $client = $this->_getClient();
- $nodes = $client->getCluster()->getNodes();
- $node = $nodes[0];
- $info = $node->getInfo();
-
- $pluginName = 'mapper-attachments';
-
- $this->assertTrue($info->hasPlugin($pluginName));
- $this->assertFalse($info->hasPlugin('foo'));
- }
-}