public acknowledge ( |
||
$message | A message object. | |
$options | array | [optional] Configuration Options |
Résultat | void |
public function acknowledge(Message $message, array $options = [])
{
$this->acknowledgeBatch([$message], $options);
}
public function testAcknowledge() { $ackId = 'foobar'; $this->connection->acknowledge(Argument::that(function ($args) use($ackId) { if ($args['foo'] !== 'bar') { return false; } if ($args['ackIds'] !== [$ackId]) { return false; } return true; }))->shouldBeCalledTimes(1); $subscription = new Subscription($this->connection->reveal(), 'subscription-name', 'topic-name', 'project-id'); $subscription->acknowledge($ackId, ['foo' => 'bar']); }