Pantheon\Terminus\UnitTests\Commands\Env\DeployCommandTest::testDeployLive PHP Method

testDeployLive() public method

Tests the env:deploy command to live
public testDeployLive ( )
    public function testDeployLive()
    {
        $this->environment->id = 'live';
        $this->environment->expects($this->once())->method('isInitialized')->willReturn(true);
        $this->environment->expects($this->once())->method('hasDeployableCode')->willReturn(true);
        $this->environment->expects($this->once())->method('deploy')->willReturn($this->workflow)->with(['updatedb' => 1, 'clear_cache' => 1, 'annotation' => 'Deploy from Terminus']);
        $this->workflow->expects($this->once())->method('checkProgress')->with()->willReturn(true);
        // Run the deploy.
        $this->command->deploy('mysite.live', ['sync-content' => true, 'note' => 'Deploy from Terminus', 'cc' => true, 'updatedb' => true]);
    }