Pantheon\Terminus\UnitTests\Models\BackupTest::testGetUrl PHP Method

testGetUrl() public method

public testGetUrl ( )
    public function testGetUrl()
    {
        $expected = '**URL**';
        $this->request->expects($this->once())->method('request')->with('sites/abc/environments/dev/backups/catalog/xyz_manual/type/s3token', ['method' => 'post', 'form_params' => ['method' => 'get']])->willReturn(['data' => (object) ['url' => $expected]]);
        $backup = $this->_getBackup(['folder' => 'xyz_manual']);
        $this->assertEquals($expected, $backup->getUrl());
    }