Google\Cloud\Tests\Snippets\BigQuery\JobTest::testReload PHP Method

testReload() public method

public testReload ( )
    public function testReload()
    {
        $this->connection->getJob(Argument::any())->shouldBeCalledTimes(1)->willReturn(['status' => ['state' => 'DONE']]);
        $job = $this->getJob($this->connection, ['status' => ['state' => 'PENDING']]);
        $snippet = $this->snippetFromMethod(Job::class, 'reload');
        $snippet->addLocal('job', $job);
        $snippet->replace('sleep(1);', '');
        $snippet->invoke();
    }