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

testReload() public method

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