public function testTagsFieldIsMergedWithGlobalTags() { $options = new Options(); $options->setDatabase("db"); $options->setTags(["dc" => "us-west"]); $httpClient = $this->prophesize("GuzzleHttp\\Client"); $httpClient->post(Argument::Any(), ["auth" => ["root", "root"], "query" => ["db" => "db", "retentionPolicy" => "default"], "body" => 'tcp.test,dc=us-west,region=us mark="element" 1257894000000000000'])->shouldBeCalledTimes(1); $adapter = new InfluxHttpAdapter($httpClient->reveal(), $options); $adapter->send(["time" => "2009-11-10T23:00:00Z", "tags" => ["region" => "us"], "points" => [["measurement" => "tcp.test", "fields" => ["mark" => "element"]]]]); }