delete() public method

Example: $subscription->delete();
See also: https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.subscriptions/delete Delete Subscription
public delete ( array $options = [] ) : void
$options array [optional] Configuration Options.
return void
Exemplo n.º 1
0
 public function testDelete()
 {
     $this->connection->deleteSubscription(Argument::withEntry('foo', 'bar'))->willReturn(null)->shouldBeCalledTimes(1);
     $subscription = new Subscription($this->connection->reveal(), 'subscription-name', 'topic-name', 'project-id');
     $res = $subscription->delete(['foo' => 'bar']);
     $this->assertNull($res);
 }