updateNode() public method

public updateNode ( Node $node, Symfony\Component\HttpFoundation\ParameterBag $parameters ) : Guzzle\Http\Message\Response
$node LibCloud\Compute\Model\Node
$parameters Symfony\Component\HttpFoundation\ParameterBag
return Guzzle\Http\Message\Response
 /**
  * @depends testListNodesWithId
  */
 public function testUpdateNodeWithAllowedProperties($node)
 {
     $this->addMockSubscriber($this->getTestFilePath('Server'));
     $this->addMockSubscriber($this->getTestFilePath('Server_Meta'));
     $this->addMockSubscriber($this->getTestFilePath('Server_Update'));
     $this->addMockSubscriber($this->getTestFilePath('Server_Update'));
     $this->addMockSubscriber($this->getTestFilePath('Server_Meta'));
     $r = $this->provider->updateNode($node, new ParameterBag(array('name' => 'test-2-sauuucy', 'accessIPv4' => '203.0.113.187', 'accessIPv6' => '2001:DB8:dead:bea7:dead:900d:dead:1337')));
     $this->assertSame(200, $r->getStatusCode(), 'updateNode returns the API response for the successful update operation');
     $properties = json_decode($r->getBody(true));
     $this->assertSame('test-2-sauuucy', $node->getName(), 'updateNode successfully updated the Node name');
     $this->assertEquals(array(array('version' => 4, 'addr' => '203.0.113.187'), array('version' => 6, 'addr' => '2001:DB8:dead:bea7:dead:900d:dead:1337')), $node->getPublicIps(), 'updateNode successfully updated the Node publicIps');
 }