/**
* @depends testListSizes
* @depends testListImages
*/
public function testCreateNode($sizes, $images)
{
$this->addMockSubscriber($this->getTestFilePath('Server_Create'));
$this->addMockSubscriber($this->getTestFilePath('Server'));
$this->addMockSubscriber($this->getTestFilePath('Server_Meta'));
$expectedCreatedNodeId = '2e1a538c-5238-4bd8-af7d-3727ef06d7b2';
$parameters = new ParameterBag(array('name' => 'test-2-saucy', 'size' => $sizes[0], 'image' => $images[0]));
$node = $this->provider->createNode($parameters);
$this->assertInstanceOf(Node::class, $node, 'createNode returns an instance of a Node');
$this->assertSame($expectedCreatedNodeId, $node->getId(), 'createNode successfully created a Node');
$this->assertSame($parameters->get('size'), $node->getSize(), 'The Node was created with the requested size');
$this->assertSame($parameters->get('image'), $node->getImage(), 'The Node was created with the requested image');
}