delete() public method

Example: $topic->delete();
See also: https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.topics/delete Delete Topic
public delete ( array $options = [] ) : void
$options array [optional] Configuration Options
return void
Beispiel #1
0
 public function testDelete()
 {
     $this->connection->deleteTopic(Argument::withEntry('foo', 'bar'));
     $topic = new Topic($this->connection->reveal(), 'topic-name', 'project-name');
     $res = $topic->delete(['foo' => 'bar']);
 }