Google\Cloud\Tests\PubSub\TopicTest::testExists PHP Méthode

testExists() public méthode

public testExists ( )
    public function testExists()
    {
        $this->connection->getTopic(Argument::withEntry('foo', 'bar'))->willReturn(['name' => 'projects/project-name/topics/topic-name']);
        $this->topic->setConnection($this->connection->reveal());
        $this->assertTrue($this->topic->exists(['foo' => 'bar']));
    }