Google\Cloud\Tests\System\PubSub\ManageTopicsTest::testReloadTopic PHP Method

testReloadTopic() public method

public testReloadTopic ( $client )
    public function testReloadTopic($client)
    {
        $shortName = uniqid(self::TESTING_PREFIX);
        $this->assertFalse($client->topic($shortName)->exists());
        $topic = $client->createTopic($shortName);
        self::$deletionQueue[] = $topic;
        $this->assertTrue($client->topic($shortName)->exists());
        $this->assertEquals($topic->name(), $topic->reload()['name']);
    }