Skip to content

Commit

Permalink
Fix tests from #755
Browse files Browse the repository at this point in the history
  • Loading branch information
im-denisenko committed Jan 22, 2015
1 parent 76153e8 commit e689375
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/lib/Elastica/Test/ClusterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function testGetNodeNames()

$names = $cluster->getNodeNames();

$this->assertSame(['elastica_test_node'], $names);
$this->assertSame(['Silver Fox', 'Skywalker', 'Wolverine'], $names);
}

public function testGetNodes()
Expand Down
6 changes: 4 additions & 2 deletions test/lib/Elastica/Test/NodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ public function testShutdown()
public function testGetName()
{
$nodes = $this->_getClient()->getCluster()->getNodes();
$this->assertCount(1, $nodes);
$this->assertEquals('elastica_test_node', $nodes[0]->getName());
$this->assertCount(3, $nodes);
foreach ($nodes as $node) {
$this->assertContains($node->getName(), ['Silver Fox', 'Skywalker', 'Wolverine']);
}
}
}

0 comments on commit e689375

Please sign in to comment.