public function testRenameLabel() { $q = 'MATCH (n) OPTIONAL MATCH (n)-[r]-() DELETE r,n'; $this->client->sendCypherQuery($q); $q = 'CREATE (n:OldLabel)'; $this->client->sendCypherQuery($q); $response = $this->client->getLabels(); $labels = $response->getBody(); $this->assertContains('OldLabel', $labels); $this->client->renameLabel('OldLabel', 'NewLabel'); $labels = $this->client->getLabels()->getBody(); $this->assertContains('NewLabel', $labels); }