Basho\Tests\NodeUnreachableTest::testReachableNodeInCluster PHP Method

testReachableNodeInCluster() public method

    public function testReachableNodeInCluster()
    {
        // grab three unreachable nodes
        $nodes = $this->getCluster();
        // replace third one with reachable node
        $nodes[2] = $this->getLocalNode();
        $riak = new Riak($nodes, ['max_connect_attempts' => 3], static::getApiBridgeClass());
        $response = (new Command\Builder\Ping($riak))->build()->execute();
        $this->assertInstanceOf('Basho\\Riak\\Command\\Response', $response);
        $this->assertTrue($response->isSuccess());
    }