Google\Cloud\Tests\PubSub\TopicTest::testInfo PHP Method

testInfo() public method

public testInfo ( )
    public function testInfo()
    {
        $this->connection->getTopic(Argument::withEntry('foo', 'bar'))->willReturn(['name' => 'projects/project-name/topics/topic-name'])->shouldBeCalledTimes(1);
        $this->topic->setConnection($this->connection->reveal());
        $res = $this->topic->info(['foo' => 'bar']);
        $res2 = $this->topic->info();
        $this->assertEquals($res, $res2);
        $this->assertEquals($res['name'], 'projects/project-name/topics/topic-name');
    }