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

testInfo() public method

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